MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddio_InternalKeyInit

Function ddio_InternalKeyInit

ddio/lnxkey.cpp:99–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97// ----------------------------------------------------------------------------
98
99bool ddio_InternalKeyInit(ddio_init_info *init_info) {
100 oeLnxApplication *app = (oeLnxApplication *)init_info->obj;
101 tLnxAppInfo app_info;
102
103 if (!app) {
104 return false;
105 }
106
107 app->get_info(&app_info);
108
109 // determine if we are to use SDL or null mode
110 Keyboard_mode = (app_info.flags & APPFLAG_USESERVICE) ? Input_null : Input_sdl;
111
112 switch (Keyboard_mode) {
113 case Input_null:
114 return ddio_null_InternalKeyInit(init_info);
115 case Input_sdl:
116 return ddio_sdl_InternalKeyInit(init_info);
117 }
118
119 return false;
120}
121
122void ddio_InternalKeyClose() {
123 switch (Keyboard_mode) {

Callers 1

ddio_KeyInitFunction · 0.85

Calls 3

ddio_sdl_InternalKeyInitFunction · 0.85
get_infoMethod · 0.45

Tested by

no test coverage detected