|
@@ -29,6 +29,7 @@
|
|
|
|
|
|
// CHANGELOG
|
|
// CHANGELOG
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
|
+// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F20 function keys. Stopped mapping F13 into PrintScreen.
|
|
// 2023-04-09: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_Pen.
|
|
// 2023-04-09: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_Pen.
|
|
// 2023-02-01: Fixed scroll wheel scaling for devices emitting events with hasPreciseScrollingDeltas==false (e.g. non-Apple mices).
|
|
// 2023-02-01: Fixed scroll wheel scaling for devices emitting events with hasPreciseScrollingDeltas==false (e.g. non-Apple mices).
|
|
// 2022-11-02: Fixed mouse coordinates before clicking the host window.
|
|
// 2022-11-02: Fixed mouse coordinates before clicking the host window.
|
|
@@ -337,36 +338,36 @@ static ImGuiKey ImGui_ImplOSX_KeyCodeToImGuiKey(int key_code)
|
|
case kVK_RightOption: return ImGuiKey_RightAlt;
|
|
case kVK_RightOption: return ImGuiKey_RightAlt;
|
|
case kVK_RightCommand: return ImGuiKey_RightSuper;
|
|
case kVK_RightCommand: return ImGuiKey_RightSuper;
|
|
// case kVK_Function: return ImGuiKey_;
|
|
// case kVK_Function: return ImGuiKey_;
|
|
-// case kVK_F17: return ImGuiKey_;
|
|
|
|
// case kVK_VolumeUp: return ImGuiKey_;
|
|
// case kVK_VolumeUp: return ImGuiKey_;
|
|
// case kVK_VolumeDown: return ImGuiKey_;
|
|
// case kVK_VolumeDown: return ImGuiKey_;
|
|
// case kVK_Mute: return ImGuiKey_;
|
|
// case kVK_Mute: return ImGuiKey_;
|
|
-// case kVK_F18: return ImGuiKey_;
|
|
|
|
-// case kVK_F19: return ImGuiKey_;
|
|
|
|
-// case kVK_F20: return ImGuiKey_;
|
|
|
|
|
|
+ case kVK_F1: return ImGuiKey_F1;
|
|
|
|
+ case kVK_F2: return ImGuiKey_F2;
|
|
|
|
+ case kVK_F3: return ImGuiKey_F3;
|
|
|
|
+ case kVK_F4: return ImGuiKey_F4;
|
|
case kVK_F5: return ImGuiKey_F5;
|
|
case kVK_F5: return ImGuiKey_F5;
|
|
case kVK_F6: return ImGuiKey_F6;
|
|
case kVK_F6: return ImGuiKey_F6;
|
|
case kVK_F7: return ImGuiKey_F7;
|
|
case kVK_F7: return ImGuiKey_F7;
|
|
- case kVK_F3: return ImGuiKey_F3;
|
|
|
|
case kVK_F8: return ImGuiKey_F8;
|
|
case kVK_F8: return ImGuiKey_F8;
|
|
case kVK_F9: return ImGuiKey_F9;
|
|
case kVK_F9: return ImGuiKey_F9;
|
|
- case kVK_F11: return ImGuiKey_F11;
|
|
|
|
- case kVK_F13: return ImGuiKey_PrintScreen;
|
|
|
|
-// case kVK_F16: return ImGuiKey_;
|
|
|
|
-// case kVK_F14: return ImGuiKey_;
|
|
|
|
case kVK_F10: return ImGuiKey_F10;
|
|
case kVK_F10: return ImGuiKey_F10;
|
|
- case 0x6E: return ImGuiKey_Menu;
|
|
|
|
|
|
+ case kVK_F11: return ImGuiKey_F11;
|
|
case kVK_F12: return ImGuiKey_F12;
|
|
case kVK_F12: return ImGuiKey_F12;
|
|
-// case kVK_F15: return ImGuiKey_;
|
|
|
|
|
|
+ case kVK_F13: return ImGuiKey_F13;
|
|
|
|
+ case kVK_F14: return ImGuiKey_F14;
|
|
|
|
+ case kVK_F15: return ImGuiKey_F15;
|
|
|
|
+ case kVK_F16: return ImGuiKey_F16;
|
|
|
|
+ case kVK_F17: return ImGuiKey_F17;
|
|
|
|
+ case kVK_F18: return ImGuiKey_F18;
|
|
|
|
+ case kVK_F19: return ImGuiKey_F19;
|
|
|
|
+ case kVK_F20: return ImGuiKey_F20;
|
|
|
|
+ case 0x6E: return ImGuiKey_Menu;
|
|
case kVK_Help: return ImGuiKey_Insert;
|
|
case kVK_Help: return ImGuiKey_Insert;
|
|
case kVK_Home: return ImGuiKey_Home;
|
|
case kVK_Home: return ImGuiKey_Home;
|
|
case kVK_PageUp: return ImGuiKey_PageUp;
|
|
case kVK_PageUp: return ImGuiKey_PageUp;
|
|
case kVK_ForwardDelete: return ImGuiKey_Delete;
|
|
case kVK_ForwardDelete: return ImGuiKey_Delete;
|
|
- case kVK_F4: return ImGuiKey_F4;
|
|
|
|
case kVK_End: return ImGuiKey_End;
|
|
case kVK_End: return ImGuiKey_End;
|
|
- case kVK_F2: return ImGuiKey_F2;
|
|
|
|
case kVK_PageDown: return ImGuiKey_PageDown;
|
|
case kVK_PageDown: return ImGuiKey_PageDown;
|
|
- case kVK_F1: return ImGuiKey_F1;
|
|
|
|
case kVK_LeftArrow: return ImGuiKey_LeftArrow;
|
|
case kVK_LeftArrow: return ImGuiKey_LeftArrow;
|
|
case kVK_RightArrow: return ImGuiKey_RightArrow;
|
|
case kVK_RightArrow: return ImGuiKey_RightArrow;
|
|
case kVK_DownArrow: return ImGuiKey_DownArrow;
|
|
case kVK_DownArrow: return ImGuiKey_DownArrow;
|