Java Code Examples for android.view.KeyEvent#KEYCODE_BUTTON_MODE

The following examples show how to use android.view.KeyEvent#KEYCODE_BUTTON_MODE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GamepadMappings.java    From 365browser with Apache License 2.0 5 votes vote down vote up
private static void mapCommonStartSelectMetaButtons(float[] mappedButtons, float[] rawButtons) {
    float start = rawButtons[KeyEvent.KEYCODE_BUTTON_START];
    float select = rawButtons[KeyEvent.KEYCODE_BUTTON_SELECT];
    float mode = rawButtons[KeyEvent.KEYCODE_BUTTON_MODE];
    mappedButtons[CanonicalButtonIndex.START] = start;
    mappedButtons[CanonicalButtonIndex.BACK_SELECT] = select;
    mappedButtons[CanonicalButtonIndex.META] = mode;
}