Skip to content

Commit 168e5c5

Browse files
committed
game-activity: build fixes for rust-bindgen 0.71 ffi API
1 parent aa653e1 commit 168e5c5

File tree

1 file changed

+2
-2
lines changed
  • android-activity/src/game_activity

1 file changed

+2
-2
lines changed

android-activity/src/game_activity/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {}

0 commit comments

Comments
 (0)