20 lines · 572 B · C
RawDownload
#pragma once #include <stdint.h>#include <stdbool.h>#include <SDL2/SDL.h> typedef struct keyb_t{	uint8_t keyRepeat, keyPressed;	bool ignoreCurrKeyUp, ignoreTextEditKey, numPadPlusPressed;	bool keyModifierDown, leftCommandPressed;	bool leftShiftPressed, leftCtrlPressed, leftAltPressed;} keyb_t; extern keyb_t keyb; // ft2_keyboard.c int8_t scancodeKeyToNote(SDL_Scancode scancode);void keyUpHandler(SDL_Scancode scancode, SDL_Keycode keycode);void keyDownHandler(SDL_Scancode scancode, SDL_Keycode keycode, bool keyWasRepeated);void readKeyModifiers(void);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t