Added SDL_GameControllerUpdate().
This commit is contained in:
parent
4de257c5d2
commit
ad1d82cf83
2 changed files with 19 additions and 0 deletions
|
@ -824,6 +824,16 @@ SDL_GameControllerOpen(int device_index)
|
|||
return (gamecontroller);
|
||||
}
|
||||
|
||||
/*
|
||||
* Manually pump for controller updates.
|
||||
*/
|
||||
void
|
||||
SDL_GameControllerUpdate(void)
|
||||
{
|
||||
/* Just for API completeness; the joystick API does all the work. */
|
||||
SDL_JoystickUpdate();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Get the current state of an axis control on a controller
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue