Android 13 touch input not working(usb-c)

I have just got my custom rom working and it seems that while using usb-c(dp mode) touch doesnt work correct, i can drag down on the screen and sometimes the shade will slide down but i can not press any buttons(settings, power), on the home screen i can not swipe or press any icons.

If i change over to HDMI then it mostly works but the screen turns on/off all the time(only happens with HDMI).

@Blah_Blah Edge 2 DP resolution and frequency - #16 by goenjoy

Perfect thanks.

One last thing, how can i add the idc file for my touch screen to my rom so i dont have to push it.

@Blah_Blah Put your IDC file in the code frameworks/base/data/keyboards/ directory.