MCPcopy Create free account
hub / github.com/DacoTaco/priiloader / Input_Init

Function Input_Init

tools/DacosLove/source/Input.cpp:135–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 return;
134}
135s8 Input_Init( void )
136{
137 if(_input_init != 0)
138 return 1;
139
140 s8 r = PAD_Init();
141 r |= WPAD_Init();
142 gettimeofday(&_time_init, NULL);
143
144 STM_RegisterEventHandler(HandleSTMEvent);
145 r |= USB_Initialize();
146 r |= USBKeyboard_Initialize();
147
148 // Even if the thread fails to start,
149 kbd_should_quit = false;
150 LWP_CreateThread( &kbd_handle,
151 kbd_thread,
152 NULL,
153 NULL,
154 16*1024,
155 50);
156
157 _input_init = 1;
158 return r;
159}
160void Input_Shutdown( void )
161{
162 if (_input_init != 1)

Callers 5

LoadHBCFunction · 0.70
LoadBootMiiFunction · 0.70
LoadListTitlesFunction · 0.70
BootDolFromMemFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected