File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android-activity/src/game_activity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,14 +338,14 @@ impl AndroidAppInner {
338338 panic ! ( "ALooper_pollAll returned POLL_ERROR" ) ;
339339 }
340340 id if id >= 0 => {
341- match id as u32 {
341+ match id as ffi :: NativeAppGlueLooperId {
342342 ffi:: NativeAppGlueLooperId_LOOPER_ID_MAIN => {
343343 trace ! ( "ALooper_pollAll returned ID_MAIN" ) ;
344344 let source: * mut ffi:: android_poll_source = source. cast ( ) ;
345345 if !source. is_null ( ) {
346346 let cmd_i = ffi:: android_app_read_cmd ( native_app. as_ptr ( ) ) ;
347347
348- let cmd = match cmd_i as u32 {
348+ let cmd = match cmd_i as ffi :: NativeAppGlueAppCmd {
349349 //NativeAppGlueAppCmd_UNUSED_APP_CMD_INPUT_CHANGED => AndroidAppMainEvent::InputChanged,
350350 ffi:: NativeAppGlueAppCmd_APP_CMD_INIT_WINDOW => {
351351 MainEvent :: InitWindow { }
You can’t perform that action at this time.
0 commit comments