py-sdl2 icon indicating copy to clipboard operation
py-sdl2 copied to clipboard

Testrumble - example script

Open marcusva opened this issue 11 years ago • 1 comments

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

marcusva avatar May 27 '14 01:05 marcusva

When I add the GameController API to sdl2.ext I should probably add a test script that should be able to test rumble support.

a-hurst avatar Sep 03 '22 16:09 a-hurst