Fix F1 on/off toggle for ImGui overlay (all platforms), clean up keycode handling (mostly macOS/iOS)
This commit is contained in:
parent
5c2aaaf693
commit
1b3fe76cdb
7 changed files with 106 additions and 70 deletions
|
|
@ -23,6 +23,11 @@ void MVKExample::keyPressed(uint32_t keyChar) { // SRS - handle keyboard key
|
|||
case KEY_P:
|
||||
_vulkanExample->paused = !_vulkanExample->paused;
|
||||
break;
|
||||
case KEY_1: // SRS - support keyboards with no function keys
|
||||
case KEY_F1:
|
||||
_vulkanExample->UIOverlay.visible = !_vulkanExample->UIOverlay.visible;
|
||||
_vulkanExample->UIOverlay.updated = true;
|
||||
break;
|
||||
default:
|
||||
_vulkanExample->keyPressed(keyChar);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue