Mercurial > py-sdl2
changeset 122:de8ff8b50adc
- added new sdl2.SDL_MouseButtonEvent.clicks attribute (SDL HG)
- added new sdl2.SDL_HINT_MOUSE_RELATIVE_MODE_WARP hint (SDL HG)
| author | Marcus von Appen <marcus@sysfault.org> |
|---|---|
| date | Fri, 27 Dec 2013 13:42:09 +0100 |
| parents | e9fad247c802 |
| children | 9b32fcfbae34 |
| files | sdl2/events.py sdl2/hints.py |
| diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sdl2/events.py Fri Dec 06 08:26:32 2013 +0100 +++ b/sdl2/events.py Fri Dec 27 13:42:09 2013 +0100 @@ -151,8 +151,8 @@ ("which", Uint32), ("button", Uint8), ("state", Uint8), + ("clicks", Uint8), ("padding1", Uint8), - ("padding2", Uint8), ("x", Sint32), ("y", Sint32) ]
--- a/sdl2/hints.py Fri Dec 06 08:26:32 2013 +0100 +++ b/sdl2/hints.py Fri Dec 27 13:42:09 2013 +0100 @@ -14,9 +14,10 @@ "SDL_HINT_VIDEO_HIGHDPI_DISABLED", "SDL_HINT_ACCEL_AS_JOY", "SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK", "SDL_HINT_RENDER_DIRECT3D_THREADSAFE", - "SDL_HINT_VIDEO_FULLSCREEN_SPACES", "SDL_HintPriority", - "SDL_SetHintWithPriority", "SDL_SetHint", "SDL_GetHint", - "SDL_ClearHints" + "SDL_HINT_VIDEO_FULLSCREEN_SPACES", + "SDL_HINT_MOUSE_RELATIVE_MODE_WARP", + "SDL_HintPriority", "SDL_SetHintWithPriority", "SDL_SetHint", + "SDL_GetHint", "SDL_ClearHints" ] SDL_HINT_FRAMEBUFFER_ACCELERATION = b"SDL_FRAMEBUFFER_ACCELERATION" @@ -41,6 +42,7 @@ SDL_HINT_VIDEO_HIGHDPI_DISABLED = b"SDL_VIDEO_HIGHDPI_DISABLED" SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK = b"SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK" SDL_HINT_RENDER_DIRECT3D_THREADSAFE = b"SDL_RENDER_DIRECT3D_THREADSAFE" +SDL_HINT_MOUSE_RELATIVE_MODE_WARP = b"SDL_MOUSE_RELATIVE_MODE_WARP" SDL_HINT_DEFAULT = 0 SDL_HINT_NORMAL = 1
