Mercurial > py-sdl2
changeset 118:ebea7c04282e
- added new sdl2.SDL_GameControllerAddMappingsFromFile() function
from upstream SDL2
| author | Marcus von Appen <marcus@sysfault.org> |
|---|---|
| date | Tue, 03 Dec 2013 08:13:58 +0100 |
| parents | 8f3bb8448f37 |
| children | 199f6d6b534e e9fad247c802 |
| files | sdl2/gamecontroller.py |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sdl2/gamecontroller.py Sat Nov 16 08:34:12 2013 +0100 +++ b/sdl2/gamecontroller.py Tue Dec 03 08:13:58 2013 +0100 @@ -1,5 +1,5 @@ from ctypes import Structure, Union, c_int, c_char_p, POINTER -from .dll import _bind +from .dll import _bind, nullfunc from .stdinc import SDL_bool, Sint16, Uint8 from .joystick import SDL_JoystickGUID, SDL_Joystick @@ -32,7 +32,7 @@ "SDL_GameControllerGetButtonFromString", "SDL_GameControllerGetStringForButton", "SDL_GameControllerGetBindForButton", "SDL_GameControllerGetButton", - "SDL_GameControllerClose" + "SDL_GameControllerClose", "SDL_GameControllerAddMappingsFromFile", ] class SDL_GameController(Structure): @@ -100,3 +100,4 @@ SDL_GameControllerGetBindForButton = _bind("SDL_GameControllerGetBindForButton", [POINTER(SDL_GameController), SDL_GameControllerButton], SDL_GameControllerButtonBind) SDL_GameControllerGetButton = _bind("SDL_GameControllerGetButton", [POINTER(SDL_GameController), SDL_GameControllerButton], Uint8) SDL_GameControllerClose = _bind("SDL_GameControllerClose", [POINTER(SDL_GameController)]) +SDL_GameControllerAddMappingsFromFile = _bind("SDL_GameControllerAddMappingsFromFile", [c_char_p], c_int, nullfunc)
