User:Jisk/Lactozilla's Gamepad Refactor
Jump to navigation
Jump to search
P_Haptic
Function | Return value(s) | Description |
---|---|---|
P_DoRumble(player_t player, [fixed_t large_motor_frequency, fixed_t small_motor_frequency, [tic_t duration]])
|
boolean | Changes the frequency of the player's gamepad's motors. If the small motor's frequency is nil , it'll be set to the large motor's frequency. If duration is nil or 0 , the motors rotate forever, until they're stopped or their frequency changes. This does nothing and always returns false if the specified player isn't "local" to the system running the game.
|
P_PauseRumble(player_t player)
|
nil | Pauses the current haptic effect on the player's gamepad. This does nothing if the specified player isn't "local" to the system running the game. |
P_UnpauseRumble(player_t player)
|
nil | Unpauses the current haptic effect on the player's gamepad. This does nothing if the specified player isn't "local" to the system running the game. |
P_IsRumbleEnabled(player_t player)
|
nil | Returns true if the player's gamepad supports haptic feedback, and has rumble enabled (console variables padrumble or padrumble2 .) This always returns false if the specified player isn't "local" to the system running the game.
|
P_IsRumblePaused(player_t player)
|
boolean | This will return true if the current haptic effect on the player's gamepad is paused, and false if it isn't. This always returns false if the specified player isn't "local" to the system running the game.
|
P_StopRumble(player_t player)
|
nil | Stops the motors on the player's gamepad from rotating. This does nothing if the specified player isn't "local" to the system running the game |