|
Post by rosy on Jan 15, 2021 17:45:55 GMT -6
Is there a function that returns the number of a pressed joystick button?
Or the feeder or any buttons were pressed?
...
No ? Detriment...
|
|
|
Post by n00b on Jan 15, 2021 19:14:28 GMT -6
You have to check each button yourself. Look at the Joystick Demo in the examples folder to see how this is done.
|
|
|
Post by rosy on Jan 16, 2021 4:48:55 GMT -6
By the way .. The sensitivity of the joystick up to 65536 is exaggerated, 255 is too much ... I don't know if you have influence on it ..
|
|
|
Post by n00b on Jan 16, 2021 10:21:21 GMT -6
By the way .. The sensitivity of the joystick up to 65536 is exaggerated, 255 is too much ... I don't know if you have influence on it .. I don't. That is what SDL is returning.
|
|
|
Post by rosy on Jan 17, 2021 5:17:46 GMT -6
Is somewhere an example of "simulation" joypad on Android?
|
|
|
Post by n00b on Jan 17, 2021 9:51:31 GMT -6
I have never done it but it will use the touch events to track its movement just like any other touch controls.
|
|
|
Post by rosy on Jan 17, 2021 14:50:05 GMT -6
I don't think we understood each other, but you gave me an idea ...
|
|
|
Post by n00b on Jan 17, 2021 15:03:24 GMT -6
Sorry if I didn't understand your question. I was assuming you were talking about an onscreen joystick. For a joystick plugged into an android device the normal joystick commands will work the same way they do on a computer.
|
|
|
Post by rosy on Jan 17, 2021 16:59:15 GMT -6
I misunderstood ... But it was, for example, in the KART demo.
|
|