SDL android NDK managing return button -
i using sdl-2.0.3 along ndk-r10e, i'm attempting make return button switch app background tried use function sdl_minimizewindow() nothing ! bug or miss ?
here code :
if(event.key.keysym.sym == sdlk_ac_back) { sdl_minimizewindow(window); sdl_log("window minimized !\n"); }
everything work fine , log message when button pressed window not minimized
that doesn't appear supported on android (there's not corresponding minimizing "window" on android, unless count finishing activity
).
the sdl_minimizewindow
function looks this:
void sdl_minimizewindow(sdl_window * window) { check_window_magic(window, ); if (window->flags & sdl_window_minimized) { return; } sdl_updatefullscreenmode(window, sdl_false); if (_this->minimizewindow) { _this->minimizewindow(_this, window); } }
where _this
sdl_videodevice *
, set point sdl_videodevice
appropriate platform @ runtime. the android video driver sets following 3 window-related functions:
device->createwindow = android_createwindow; device->setwindowtitle = android_setwindowtitle; device->destroywindow = android_destroywindow;
trying perform other operations on sdl_window
on android nothing.
some further information in form of couple of lines of code sdl_androidwindow.c:
window->flags &= ~sdl_window_resizable; /* window never resizeable */ window->flags |= sdl_window_fullscreen; /* window fullscreen */
Comments
Post a Comment