mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-27 17:15:32 +01:00
Add macOS keycodes for left/right control and tab (#535)
This commit is contained in:
parent
6f985c3c78
commit
79e731d9b4
@ -7,6 +7,10 @@
|
|||||||
#include <gdk/gdkkeysyms.h>
|
#include <gdk/gdkkeysyms.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_OS_MACOS
|
||||||
|
#include <Carbon/Carbon.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct WindowHandleInfo
|
struct WindowHandleInfo
|
||||||
{
|
{
|
||||||
#if BOOST_OS_WINDOWS
|
#if BOOST_OS_WINDOWS
|
||||||
@ -36,6 +40,10 @@ enum struct PlatformKeyCodes : uint32
|
|||||||
LCONTROL = GDK_KEY_Control_L,
|
LCONTROL = GDK_KEY_Control_L,
|
||||||
RCONTROL = GDK_KEY_Control_R,
|
RCONTROL = GDK_KEY_Control_R,
|
||||||
TAB = GDK_KEY_Tab,
|
TAB = GDK_KEY_Tab,
|
||||||
|
#elif BOOST_OS_MACOS
|
||||||
|
LCONTROL = kVK_Control,
|
||||||
|
RCONTROL = kVK_RightControl,
|
||||||
|
TAB = kVK_Tab,
|
||||||
#else
|
#else
|
||||||
LCONTROL = 0,
|
LCONTROL = 0,
|
||||||
RCONTROL = 0,
|
RCONTROL = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user