ODK Widget
The ODK widget has some useful built in functionality.
Defining IMCs
You can use InputMappingContexts to define the IMCs that should be enabled when this widget is Activated. All other IMCs will be disabled. When the widget is Deactivated, the IMCs enabled previous to the widget being Activated will be re-enabled.
UI Mode
You can define the UI mode that widget needs when Activated. Generally, if you need some button input for your widget, you will want to use input mode GAME_AND_UI.
Getting the last input type
GetLastInputType can be used to find out what the last input type was (Gamepad/Keyboard etc).
Last updated

