Static Public Member Functions | |
INT32 | isSupported () |
Determines if vibrator hardware is available. | |
void | playBasic (INT32 aVibrateTime, INT32 aPauseTime, INT32 aCycles) |
Plays basic rumbler effect. | |
void | playNote (UINT8 aDuration, UINT8 aMagnitude) |
Plays a single vibration note. | |
void | playSong (UINT8 *aSong, INT32 aNotes, INT aLoop) |
Plays a vibrator 'song'. | |
void | stop () |
Attempts to stop the current vibration effect. |
|
Determines if vibrator hardware is available.
|
|
Plays basic rumbler effect. Basic vibrator support doesn't define the magnitude of the vibration at all. Vibration is run in cycles of vibrator on, vibrator off, and these cycles can be repeated. The vibration time is in units of approximately 100ms. |
|
Plays a single vibration note. This is a convenience function and only works if rumbler 'songs' are supported.
|
|
Plays a vibrator 'song'. Song is an array of 2-byte 'notes', with first byte of the pair noting the 'magniture' of the vibration (0 being silent, 255 being max), and the second byte is the duration, in approximately 10ms intervals. If the hardware supports it, the song can be set to loop until the next play() command.
|
|
Attempts to stop the current vibration effect.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |