TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Wired controller button mapping

Open borbware opened this issue 3 years ago • 7 comments

On the PS4 controller, TIC-80 maps controls as

L2, R2, R1, select (share), start (options), touchpad = open menu
triangle = Y
circle = X
square = A
cross = B

A better mapping would be

select (share), start (options), touchpad = open menu
triangle = Y
circle = B
square = X
cross = A

Also, would it be possible to detect from code if a PS4 controller is connected so you could use sprites of the triangle, circle, square, cross buttons in-game to represent the buttons?

Or rather, detect if there was any controller at all! I'm now using a checker function with a logic of "was a btnp and a corresponding keyp pressed at the same time? If not, then input must be coming from a controller".... It works 90% of the time!

borbware avatar Jan 11 '21 17:01 borbware