RetroArch
Macros | Enumerations | Functions
keyboard_event_android.h File Reference
#include <stdint.h>
#include <boolean.h>
Include dependency graph for keyboard_event_android.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_PADS   8
 
#define ANDROID_KEYBOARD_PORT   MAX_PADS
 

Enumerations

enum  {
  AKEYCODE_ESCAPE = 111, AKEYCODE_FORWARD_DEL = 112, AKEYCODE_CTRL_LEFT = 113, AKEYCODE_CTRL_RIGHT = 114,
  AKEYCODE_CAPS_LOCK = 115, AKEYCODE_SCROLL_LOCK = 116, AKEYCODE_META_LEFT = 117, AKEYCODE_META_RIGHT = 118,
  AKEYCODE_FUNCTION = 119, AKEYCODE_SYSRQ = 120, AKEYCODE_BREAK = 121, AKEYCODE_MOVE_HOME = 122,
  AKEYCODE_MOVE_END = 123, AKEYCODE_INSERT = 124, AKEYCODE_FORWARD = 125, AKEYCODE_MEDIA_PLAY = 126,
  AKEYCODE_MEDIA_PAUSE = 127, AKEYCODE_MEDIA_CLOSE = 128, AKEYCODE_MEDIA_EJECT = 129, AKEYCODE_MEDIA_RECORD = 130,
  AKEYCODE_F1 = 131, AKEYCODE_F2 = 132, AKEYCODE_F3 = 133, AKEYCODE_F4 = 134,
  AKEYCODE_F5 = 135, AKEYCODE_F6 = 136, AKEYCODE_F7 = 137, AKEYCODE_F8 = 138,
  AKEYCODE_F9 = 139, AKEYCODE_F10 = 140, AKEYCODE_F11 = 141, AKEYCODE_F12 = 142,
  AKEYCODE_NUM_LOCK = 143, AKEYCODE_NUMPAD_0 = 144, AKEYCODE_NUMPAD_1 = 145, AKEYCODE_NUMPAD_2 = 146,
  AKEYCODE_NUMPAD_3 = 147, AKEYCODE_NUMPAD_4 = 148, AKEYCODE_NUMPAD_5 = 149, AKEYCODE_NUMPAD_6 = 150,
  AKEYCODE_NUMPAD_7 = 151, AKEYCODE_NUMPAD_8 = 152, AKEYCODE_NUMPAD_9 = 153, AKEYCODE_NUMPAD_DIVIDE = 154,
  AKEYCODE_NUMPAD_MULTIPLY = 155, AKEYCODE_NUMPAD_SUBTRACT = 156, AKEYCODE_NUMPAD_ADD = 157, AKEYCODE_NUMPAD_DOT = 158,
  AKEYCODE_NUMPAD_COMMA = 159, AKEYCODE_NUMPAD_ENTER = 160, AKEYCODE_NUMPAD_EQUALS = 161, AKEYCODE_NUMPAD_LEFT_PAREN = 162,
  AKEYCODE_NUMPAD_RIGHT_PAREN = 163, AKEYCODE_VOLUME_MUTE = 164, AKEYCODE_INFO = 165, AKEYCODE_CHANNEL_UP = 166,
  AKEYCODE_CHANNEL_DOWN = 167, AKEYCODE_ZOOM_IN = 168, AKEYCODE_ZOOM_OUT = 169, AKEYCODE_TV = 170,
  AKEYCODE_WINDOW = 171, AKEYCODE_GUIDE = 172, AKEYCODE_DVR = 173, AKEYCODE_BOOKMARK = 174,
  AKEYCODE_CAPTIONS = 175, AKEYCODE_SETTINGS = 176, AKEYCODE_TV_POWER = 177, AKEYCODE_TV_INPUT = 178,
  AKEYCODE_STB_POWER = 179, AKEYCODE_STB_INPUT = 180, AKEYCODE_AVR_POWER = 181, AKEYCODE_AVR_INPUT = 182,
  AKEYCODE_PROG_RED = 183, AKEYCODE_PROG_GREEN = 184, AKEYCODE_PROG_YELLOW = 185, AKEYCODE_PROG_BLUE = 186,
  AKEYCODE_APP_SWITCH = 187, AKEYCODE_BUTTON_1 = 188, AKEYCODE_BUTTON_2 = 189, AKEYCODE_BUTTON_3 = 190,
  AKEYCODE_BUTTON_4 = 191, AKEYCODE_BUTTON_5 = 192, AKEYCODE_BUTTON_6 = 193, AKEYCODE_BUTTON_7 = 194,
  AKEYCODE_BUTTON_8 = 195, AKEYCODE_BUTTON_9 = 196, AKEYCODE_BUTTON_10 = 197, AKEYCODE_BUTTON_11 = 198,
  AKEYCODE_BUTTON_12 = 199, AKEYCODE_BUTTON_13 = 200, AKEYCODE_BUTTON_14 = 201, AKEYCODE_BUTTON_15 = 202,
  AKEYCODE_BUTTON_16 = 203
}
 
enum  { AMETA_CTRL_ON = 0x1000 }
 

Functions

bool android_keyboard_port_input_pressed (const struct retro_keybind *binds, unsigned id)
 
bool android_keyboard_input_pressed (unsigned key)
 
uint8_tandroid_keyboard_state_get (unsigned port)
 
void android_keyboard_free (void)
 

Macro Definition Documentation

◆ ANDROID_KEYBOARD_PORT

#define ANDROID_KEYBOARD_PORT   MAX_PADS

◆ MAX_PADS

#define MAX_PADS   8

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AKEYCODE_ESCAPE 
AKEYCODE_FORWARD_DEL 
AKEYCODE_CTRL_LEFT 
AKEYCODE_CTRL_RIGHT 
AKEYCODE_CAPS_LOCK 
AKEYCODE_SCROLL_LOCK 
AKEYCODE_META_LEFT 
AKEYCODE_META_RIGHT 
AKEYCODE_FUNCTION 
AKEYCODE_SYSRQ 
AKEYCODE_BREAK 
AKEYCODE_MOVE_HOME 
AKEYCODE_MOVE_END 
AKEYCODE_INSERT 
AKEYCODE_FORWARD 
AKEYCODE_MEDIA_PLAY 
AKEYCODE_MEDIA_PAUSE 
AKEYCODE_MEDIA_CLOSE 
AKEYCODE_MEDIA_EJECT 
AKEYCODE_MEDIA_RECORD 
AKEYCODE_F1 
AKEYCODE_F2 
AKEYCODE_F3 
AKEYCODE_F4 
AKEYCODE_F5 
AKEYCODE_F6 
AKEYCODE_F7 
AKEYCODE_F8 
AKEYCODE_F9 
AKEYCODE_F10 
AKEYCODE_F11 
AKEYCODE_F12 
AKEYCODE_NUM_LOCK 
AKEYCODE_NUMPAD_0 
AKEYCODE_NUMPAD_1 
AKEYCODE_NUMPAD_2 
AKEYCODE_NUMPAD_3 
AKEYCODE_NUMPAD_4 
AKEYCODE_NUMPAD_5 
AKEYCODE_NUMPAD_6 
AKEYCODE_NUMPAD_7 
AKEYCODE_NUMPAD_8 
AKEYCODE_NUMPAD_9 
AKEYCODE_NUMPAD_DIVIDE 
AKEYCODE_NUMPAD_MULTIPLY 
AKEYCODE_NUMPAD_SUBTRACT 
AKEYCODE_NUMPAD_ADD 
AKEYCODE_NUMPAD_DOT 
AKEYCODE_NUMPAD_COMMA 
AKEYCODE_NUMPAD_ENTER 
AKEYCODE_NUMPAD_EQUALS 
AKEYCODE_NUMPAD_LEFT_PAREN 
AKEYCODE_NUMPAD_RIGHT_PAREN 
AKEYCODE_VOLUME_MUTE 
AKEYCODE_INFO 
AKEYCODE_CHANNEL_UP 
AKEYCODE_CHANNEL_DOWN 
AKEYCODE_ZOOM_IN 
AKEYCODE_ZOOM_OUT 
AKEYCODE_TV 
AKEYCODE_WINDOW 
AKEYCODE_GUIDE 
AKEYCODE_DVR 
AKEYCODE_BOOKMARK 
AKEYCODE_CAPTIONS 
AKEYCODE_SETTINGS 
AKEYCODE_TV_POWER 
AKEYCODE_TV_INPUT 
AKEYCODE_STB_POWER 
AKEYCODE_STB_INPUT 
AKEYCODE_AVR_POWER 
AKEYCODE_AVR_INPUT 
AKEYCODE_PROG_RED 
AKEYCODE_PROG_GREEN 
AKEYCODE_PROG_YELLOW 
AKEYCODE_PROG_BLUE 
AKEYCODE_APP_SWITCH 
AKEYCODE_BUTTON_1 
AKEYCODE_BUTTON_2 
AKEYCODE_BUTTON_3 
AKEYCODE_BUTTON_4 
AKEYCODE_BUTTON_5 
AKEYCODE_BUTTON_6 
AKEYCODE_BUTTON_7 
AKEYCODE_BUTTON_8 
AKEYCODE_BUTTON_9 
AKEYCODE_BUTTON_10 
AKEYCODE_BUTTON_11 
AKEYCODE_BUTTON_12 
AKEYCODE_BUTTON_13 
AKEYCODE_BUTTON_14 
AKEYCODE_BUTTON_15 
AKEYCODE_BUTTON_16 

◆ anonymous enum

anonymous enum
Enumerator
AMETA_CTRL_ON 

Function Documentation

◆ android_keyboard_free()

void android_keyboard_free ( void  )
Here is the caller graph for this function:

◆ android_keyboard_input_pressed()

bool android_keyboard_input_pressed ( unsigned  key)
Here is the caller graph for this function:

◆ android_keyboard_port_input_pressed()

bool android_keyboard_port_input_pressed ( const struct retro_keybind binds,
unsigned  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ android_keyboard_state_get()

uint8_t* android_keyboard_state_get ( unsigned  port)
Here is the caller graph for this function: