Changeset 0ecab17 in opengl-game
- Timestamp:
- Apr 17, 2020, 2:54:05 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- a52ba87
- Parents:
- 6d95ade
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r6d95ade r0ecab17 107 107 event->type = UI_EVENT_KEYDOWN; 108 108 event->key.keycode = e.key.keysym.scancode; 109 event->key.repeat = e.key.repeat != 0; 109 110 break; 110 111 case SDL_KEYUP: 111 112 event->type = UI_EVENT_KEYUP; 112 113 event->key.keycode = e.key.keysym.scancode; 114 event->key.repeat = e.key.repeat != 0; 113 115 break; 114 116 case SDL_MOUSEBUTTONDOWN: … … 128 130 case SDL_AUDIODEVICEREMOVED: 129 131 case SDL_TEXTINPUT: 130 case SDL_TEXTEDITING: // TODO: Research this one later132 case SDL_TEXTEDITING: 131 133 event->type = UI_EVENT_UNKNOWN; 132 134 event->unknown.eventType = e.type; -
game-gui.hpp
r6d95ade r0ecab17 30 30 EventType type; 31 31 unsigned int keycode; 32 bool repeat; 32 33 }; 33 34
Note:
See TracChangeset
for help on using the changeset viewer.