Open
Description
Originally reported by: mungewell (Bitbucket: mungewell, GitHub: mungewell)
Following the same concept/format as the SDL testhaptic, please find attached a python script to do the same.
simon@bigbox:~/PySDL2-0.9.2/examples$ python testhaptic.py
Trying to find haptics
Found 0 : G27 Racing Wheel
Found 1 : Sony Computer Entertainment Wireless Controller
Using device 0
effect 0 Sine Wave
effect 1 Triangle
effect 2 Sawtooth Up
effect 3 Sawtooth Down
effect 4 Ramp
effect 5 Constant Force
effect 6 Left/Right
Bug 'leftright' not defined
Now playing effects for 5 seconds each with 1 second delay between
Playing effect 0
Playing effect 1
Playing effect 2
Playing effect 3
Playing effect 4
Playing effect 5
Playing effect 6
Minor bug (in PySDL2) is that 'leftright' argument for HapticEffect is not defined.