Hey everyone. I am trying to create some joystick controls.
I am connecting my Joystick sensor with my python module.
I get the sensor and can access the joystick via:
c = bge.logic.getCurrentController()
buttonJump = c.sensors[‘joystickSensor’]
I can see if my button is positive or not. But how can I get states like “just pressed”, “pressed” or “released”?
For Keyboardinputs this is no problem. I can get states from 0-3 which indicate the mentioned behaviors.
Does anyone have some Ideas?
I have found this:
But this function gives only True or False
(btw. Charlie is making good progress… ^^ So you can asume this Joystick inputs are for “CharliesBigAdventure”)