mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
BGE: Fix for [#35479] "OSKEY (Command Key on Mac) not working" reported by Mike Pan (mpan3).
The OSKEY was never added to the game engine, so it didn't recognize it.
This commit is contained in:
parent
c00b408052
commit
4eded6dbdc
4 changed files with 9 additions and 2 deletions
|
|
@ -358,8 +358,9 @@ static std::map<int, SCA_IInputDevice::KX_EnumInputs> create_translate_table()
|
|||
m[F17KEY ] = SCA_IInputDevice::KX_F17KEY;
|
||||
m[F18KEY ] = SCA_IInputDevice::KX_F18KEY;
|
||||
m[F19KEY ] = SCA_IInputDevice::KX_F19KEY;
|
||||
|
||||
|
||||
|
||||
m[OSKEY ] = SCA_IInputDevice::KX_OSKEY;
|
||||
|
||||
m[PAUSEKEY ] = SCA_IInputDevice::KX_PAUSEKEY;
|
||||
m[INSERTKEY ] = SCA_IInputDevice::KX_INSERTKEY;
|
||||
m[HOMEKEY ] = SCA_IInputDevice::KX_HOMEKEY;
|
||||
|
|
|
|||
|
|
@ -238,6 +238,8 @@ public:
|
|||
KX_F17KEY,
|
||||
KX_F18KEY,
|
||||
KX_F19KEY,
|
||||
|
||||
KX_OSKEY,
|
||||
|
||||
KX_PAUSEKEY,
|
||||
KX_INSERTKEY,
|
||||
|
|
|
|||
|
|
@ -147,6 +147,8 @@ GPG_KeyboardDevice::GPG_KeyboardDevice(void)
|
|||
m_reverseKeyTranslateTable[GHOST_kKeyLeftBracket ] = KX_LEFTBRACKETKEY ;
|
||||
m_reverseKeyTranslateTable[GHOST_kKeyRightBracket ] = KX_RIGHTBRACKETKEY ;
|
||||
|
||||
m_reverseKeyTranslateTable[GHOST_kKeyOS ] = KX_OSKEY ;
|
||||
|
||||
// Modifier keys.
|
||||
m_reverseKeyTranslateTable[GHOST_kKeyLeftControl ] = KX_LEFTCTRLKEY ;
|
||||
m_reverseKeyTranslateTable[GHOST_kKeyRightControl ] = KX_RIGHTCTRLKEY ;
|
||||
|
|
|
|||
|
|
@ -2415,6 +2415,8 @@ PyObject *initGameKeys()
|
|||
KX_MACRO_addTypesToDict(d, F17KEY, SCA_IInputDevice::KX_F17KEY);
|
||||
KX_MACRO_addTypesToDict(d, F18KEY, SCA_IInputDevice::KX_F18KEY);
|
||||
KX_MACRO_addTypesToDict(d, F19KEY, SCA_IInputDevice::KX_F19KEY);
|
||||
|
||||
KX_MACRO_addTypesToDict(d, OSKEY, SCA_IInputDevice::KX_OSKEY);
|
||||
|
||||
KX_MACRO_addTypesToDict(d, PAUSEKEY, SCA_IInputDevice::KX_PAUSEKEY);
|
||||
KX_MACRO_addTypesToDict(d, INSERTKEY, SCA_IInputDevice::KX_INSERTKEY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue