Sam Lantinga
dbd4a917e0
Document Michael's changes adding TranslateMessage() back to the SDL message loop.
2014-01-30 12:27:24 -08:00
Sam Lantinga
5c58bd6877
* Added TranslateMessage call to SDL default message pump - was causing problems in S2 tools mode apps that used Qt. Qt relies on the WM_CHAR message generated by TranslateMessage and keyboard input was showing up in the UI as mixed-case. (Depending on which message pump got a given message - both SDL and Qt pump messages for the entire process.) Sam will review and possibly tweak this change before propagating to public SDL, but I'm checking this version in so I can integrate into S2 and fix the issue there.
2014-01-30 12:27:00 -08:00
Ryan C. Gordon
7e1289af32
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
2013-11-24 23:56:17 -05:00
Sam Lantinga
b44e7470de
Fixed display mode calculations for applications which are not DPI aware.
...
If your application wants to have access to the full resolution even when the system has DPI scaling enabled, call SetProcessDPIAware() before calling SDL_Init()
e.g.
typedef BOOL (WINAPI *SetProcessDPIAware_t)(void);
HMODULE hMod = LoadLibrary("user32.dll");
if ( hMod ) {
SetProcessDPIAware_t pSetProcessDPIAware = GetProcAddress( hMod, "SetProcessDPIAware" );
if ( pSetProcessDPIAware ) {
pSetProcessDPIAware();
}
FreeLibrary( hMod );
}
2013-12-30 12:49:15 -08:00
Sam Lantinga
6f6c76a6a5
Make sure our window has mouse focus before processing raw input events.
...
This happens rarely, but not reproducibly, where we get raw input events for the window even though it doesn't have focus.
2013-12-27 10:18:18 -08:00
Philipp Wiesemann
87ad7a1c50
Fixed pointer from integer warning and bug if compiled without EGL.
2013-12-25 16:57:59 +01:00
Sam Lantinga
2521e49769
Setting the mouse in relative mode implies grabbing the mouse.
...
This fixes getting mouse button events in raw input relative mode on X11.
2013-12-23 17:55:06 -08:00
Sam Lantinga
7aef2350cf
Added a relative mouse mode that uses mouse warping instead of raw input.
...
To enable this, set the environment variable SDL_MOUSE_RELATIVE_MODE_WARP to "1"
When mouse relative mode is disabled, put the cursor back where the application expects it to be, instead of where it was when relative mode was enabled.
2013-12-23 17:37:22 -08:00
Sam Lantinga
746928350f
Added support for double-clicks, through a new "clicks" field in the mouse button event.
2013-12-23 12:17:52 -08:00
Sam Lantinga
7afb76824e
Added code missed in the resolve
2013-12-05 09:29:04 -08:00
Gabriel Jacobo
f848adff5f
Improve Android pause/resume behavior.
2013-11-29 10:06:08 -03:00