As blogged before the screen image position controlling with joystick button are done. The good thing about electronic devices are that there will be many more things to explore further .Joy stick works as coordinates of the axis when we move it. Looks like its values moves from 1.0 to -1.0 . I am interested to control the screen image with this axis rather than buttons in the joystick.
Looking further on the documentation in Pygame - http://www.pygame.org/docs/ref/joystick.html
- get_axis()
- get the current position of an axis
- get_axis(axis_number) -> float
The axis number must be an integer from zero to get_numaxes()-1.
No comments:
Post a Comment