mirror of https://github.com/PCSX2/pcsx2.git
UI: Bugfix: normal keys were not handled by PCSX2 (can now be used as KB shortcuts, etc).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4918 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
8b2aa64d7e
commit
851bfba6f2
|
@ -231,7 +231,7 @@ void Pcsx2App::PadKeyDispatch( const keyEvent& ev )
|
|||
const bool isDown = (ev.evt == KEYPRESS);
|
||||
|
||||
#ifdef __WXMSW__
|
||||
const int vkey = wxCharCodeMSWToWX( ev.key );
|
||||
const int vkey = wxCharCodeMSWToWX( ev.key ); //returns 0 if plain ascii value or a WXK_... (<=32 or >=300) if a special key
|
||||
#elif defined( __WXGTK__ )
|
||||
const int vkey = TranslateGDKtoWXK( ev.key );
|
||||
#else
|
||||
|
@ -247,7 +247,7 @@ void Pcsx2App::PadKeyDispatch( const keyEvent& ev )
|
|||
case WXK_MENU: m_kevt.m_altDown = isDown; return;
|
||||
}
|
||||
|
||||
m_kevt.m_keyCode = vkey;
|
||||
m_kevt.m_keyCode = vkey? vkey : ev.key;
|
||||
|
||||
if( m_kevt.GetEventType() == wxEVT_KEY_DOWN )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue