AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Macros | Enumerations | Functions
sdl_translate.c File Reference

SDL scancode to uinput. More...

#include <sdl_translate.h>
#include <linux/input.h>
#include "logger.h"
Include dependency graph for sdl_translate.c:

Go to the source code of this file.

Macros

#define LOG_TAG   "sdl_translate"
 

Enumerations

enum  AndroidKeyCode {
  kKeyCodeEscape = KEY_ESC, kKeyCodeHome = KEY_HOME, kKeyCodeBack = KEY_BACK, kKeyCodeCall = KEY_SEND,
  kKeyCodeEndCall = KEY_END, kKeyCode0 = KEY_0, kKeyCode1 = KEY_1, kKeyCode2 = KEY_2,
  kKeyCode3 = KEY_3, kKeyCode4 = KEY_4, kKeyCode5 = KEY_5, kKeyCode6 = KEY_6,
  kKeyCode7 = KEY_7, kKeyCode8 = KEY_8, kKeyCode9 = KEY_9, kKeyCodeStar = KEY_KPASTERISK,
  kKeyCodeDpadUp = KEY_UP, kKeyCodeDpadDown = KEY_DOWN, kKeyCodeDpadLeft = KEY_LEFT, kKeyCodeDpadRight = KEY_RIGHT,
  kKeyCodeVolumeUp = KEY_VOLUMEUP, kKeyCodeVolumeDown = KEY_VOLUMEDOWN, kKeyCodePower = KEY_POWER, kKeyCodeCamera = KEY_CAMERA,
  kKeyCodeClear = KEY_CLEAR, kKeyCodePageUp = KEY_PAGEUP, kKeyCodePageDown = KEY_PAGEDOWN, kKeyCodeA = KEY_A,
  kKeyCodeB = KEY_B, kKeyCodeC = KEY_C, kKeyCodeD = KEY_D, kKeyCodeE = KEY_E,
  kKeyCodeF = KEY_F, kKeyCodeG = KEY_G, kKeyCodeH = KEY_H, kKeyCodeI = KEY_I,
  kKeyCodeJ = KEY_J, kKeyCodeK = KEY_K, kKeyCodeL = KEY_L, kKeyCodeM = KEY_M,
  kKeyCodeN = KEY_N, kKeyCodeO = KEY_O, kKeyCodeP = KEY_P, kKeyCodeQ = KEY_Q,
  kKeyCodeR = KEY_R, kKeyCodeS = KEY_S, kKeyCodeT = KEY_T, kKeyCodeU = KEY_U,
  kKeyCodeV = KEY_V, kKeyCodeW = KEY_W, kKeyCodeX = KEY_X, kKeyCodeY = KEY_Y,
  kKeyCodeZ = KEY_Z, kKeyCodeComma = KEY_COMMA, kKeyCodePeriod = KEY_DOT, kKeyCodeAltLeft = KEY_LEFTALT,
  kKeyCodeAltRight = KEY_RIGHTALT, kKeyCodeCapLeft = KEY_LEFTSHIFT, kKeyCodeCapRight = KEY_RIGHTSHIFT, kKeyCodeTab = KEY_TAB,
  kKeyCodeSpace = KEY_SPACE, kKeyCodeSym = KEY_COMPOSE, kKeyCodeExplorer = KEY_WWW, kKeyCodeEnvelope = KEY_MAIL,
  kKeyCodeNewline = KEY_ENTER, kKeyCodeDel = KEY_BACKSPACE, kKeyCodeGrave = 399, kKeyCodeMinus = KEY_MINUS,
  kKeyCodeEquals = KEY_EQUAL, kKeyCodeLeftBracket = KEY_LEFTBRACE, kKeyCodeRightBracket = KEY_RIGHTBRACE, kKeyCodeBackslash = KEY_BACKSLASH,
  kKeyCodeSemicolon = KEY_SEMICOLON, kKeyCodeApostrophe = KEY_APOSTROPHE, kKeyCodeSlash = KEY_SLASH, kKeyCodeAt = KEY_EMAIL,
  kKeyCodeSearch = KEY_SEARCH, kKeyCodePrevious = KEY_PREVIOUS, kKeyCodeNext = KEY_NEXT, kKeyCodePlay = KEY_PLAY,
  kKeyCodePause = KEY_PAUSE, kKeyCodeStop = KEY_STOP, kKeyCodeRewind = KEY_REWIND, kKeyCodeFastForward = KEY_FASTFORWARD,
  kKeyCodeBookmarks = KEY_BOOKMARKS, kKeyCodeCycleWindows = KEY_CYCLEWINDOWS
}
 

Functions

int sdl_translate_event (SDL_Scancode scancode, SDL_Keycode keysym)
 Convert an SDL scancode to a value read by the virtual input daemon. More...
 

Detailed Description

SDL scancode to uinput.

Definition in file sdl_translate.c.

Macro Definition Documentation

#define LOG_TAG   "sdl_translate"

Definition at line 9 of file sdl_translate.c.

Enumeration Type Documentation

Enumerator
kKeyCodeEscape 
kKeyCodeHome 
kKeyCodeBack 
kKeyCodeCall 
kKeyCodeEndCall 
kKeyCode0 
kKeyCode1 
kKeyCode2 
kKeyCode3 
kKeyCode4 
kKeyCode5 
kKeyCode6 
kKeyCode7 
kKeyCode8 
kKeyCode9 
kKeyCodeStar 
kKeyCodeDpadUp 
kKeyCodeDpadDown 
kKeyCodeDpadLeft 
kKeyCodeDpadRight 
kKeyCodeVolumeUp 
kKeyCodeVolumeDown 
kKeyCodePower 
kKeyCodeCamera 
kKeyCodeClear 
kKeyCodePageUp 
kKeyCodePageDown 
kKeyCodeA 
kKeyCodeB 
kKeyCodeC 
kKeyCodeD 
kKeyCodeE 
kKeyCodeF 
kKeyCodeG 
kKeyCodeH 
kKeyCodeI 
kKeyCodeJ 
kKeyCodeK 
kKeyCodeL 
kKeyCodeM 
kKeyCodeN 
kKeyCodeO 
kKeyCodeP 
kKeyCodeQ 
kKeyCodeR 
kKeyCodeS 
kKeyCodeT 
kKeyCodeU 
kKeyCodeV 
kKeyCodeW 
kKeyCodeX 
kKeyCodeY 
kKeyCodeZ 
kKeyCodeComma 
kKeyCodePeriod 
kKeyCodeAltLeft 
kKeyCodeAltRight 
kKeyCodeCapLeft 
kKeyCodeCapRight 
kKeyCodeTab 
kKeyCodeSpace 
kKeyCodeSym 
kKeyCodeExplorer 
kKeyCodeEnvelope 
kKeyCodeNewline 
kKeyCodeDel 
kKeyCodeGrave 
kKeyCodeMinus 
kKeyCodeEquals 
kKeyCodeLeftBracket 
kKeyCodeRightBracket 
kKeyCodeBackslash 
kKeyCodeSemicolon 
kKeyCodeApostrophe 
kKeyCodeSlash 
kKeyCodeAt 
kKeyCodeSearch 
kKeyCodePrevious 
kKeyCodeNext 
kKeyCodePlay 
kKeyCodePause 
kKeyCodeStop 
kKeyCodeRewind 
kKeyCodeFastForward 
kKeyCodeBookmarks 
kKeyCodeCycleWindows 

Definition at line 13 of file sdl_translate.c.

Function Documentation

int sdl_translate_event ( SDL_Scancode  scancode,
SDL_Keycode  keysym 
)

Convert an SDL scancode to a value read by the virtual input daemon.

Definition at line 105 of file sdl_translate.c.

Here is the caller graph for this function: