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 {
338
338
panic ! ( "ALooper_pollAll returned POLL_ERROR" ) ;
339
339
}
340
340
id if id >= 0 => {
341
- match id as u32 {
341
+ match id as ffi :: NativeAppGlueLooperId {
342
342
ffi:: NativeAppGlueLooperId_LOOPER_ID_MAIN => {
343
343
trace ! ( "ALooper_pollAll returned ID_MAIN" ) ;
344
344
let source: * mut ffi:: android_poll_source = source. cast ( ) ;
345
345
if !source. is_null ( ) {
346
346
let cmd_i = ffi:: android_app_read_cmd ( native_app. as_ptr ( ) ) ;
347
347
348
- let cmd = match cmd_i as u32 {
348
+ let cmd = match cmd_i as ffi :: NativeAppGlueAppCmd {
349
349
//NativeAppGlueAppCmd_UNUSED_APP_CMD_INPUT_CHANGED => AndroidAppMainEvent::InputChanged,
350
350
ffi:: NativeAppGlueAppCmd_APP_CMD_INIT_WINDOW => {
351
351
MainEvent :: InitWindow { }
You can’t perform that action at this time.
0 commit comments