py-sdl2
py-sdl2 copied to clipboard
Testrumble - example script
Originally reported by: mungewell (Bitbucket: mungewell, GitHub: mungewell)
Following the same concept/format as the SDL testrumble, please find attached a python script to do the same.
simon@bigbox:~/PySDL2-0.9.2/examples$ python testrumble.py 1
Trying to find haptics
Found 0 : G27 Racing Wheel
Found 1 : Sony Computer Entertainment Wireless Controller
Using device 1
Stopping rumble.
Playing 2 second rumble at 0.3 magnitude.
- Bitbucket: https://bitbucket.org/marcusva/py-sdl2/issue/61
When I add the GameController API to sdl2.ext I should probably add a test script that should be able to test rumble support.