SFlashKeyEvent

Key input event sent to flash

C++
struct SFlashKeyEvent {
  enum EKeyState {
    eKeyDown,
    eKeyUp
  };
  enum EKeyCode {
    VoidSymbol = 0,
    A = 65,
    B,
    C,
    D,
    E,
    F,
    G,
    H,
    I,
    J,
    K,
    L,
    M,
    N,
    O,
    P,
    Q,
    R,
    S,
    T,
    U,
    V,
    W,
    X,
    Y,
    Z,
    Num0 = 48,
    Num1,
    Num2,
    Num3,
    Num4,
    Num5,
    Num6,
    Num7,
    Num8,
    Num9,
    KP_0 = 96,
    KP_1,
    KP_2,
    KP_3,
    KP_4,
    KP_5,
    KP_6,
    KP_7,
    KP_8,
    KP_9,
    KP_Multiply,
    KP_Add,
    KP_Enter,
    KP_Subtract,
    KP_Decimal,
    KP_Divide,
    F1 = 112,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
    F13,
    F14,
    F15,
    Backspace = 8,
    Tab,
    Clear = 12,
    Return,
    Shift = 16,
    Control,
    Alt,
    CapsLock = 20,
    Escape = 27,
    Space = 32,
    PageUp,
    PageDown,
    End = 35,
    Home,
    Left,
    Up,
    Right,
    Down,
    Insert = 45,
    Delete,
    Help,
    NumLock = 144,
    ScrollLock = 145,
    Semicolon = 186,
    Equal = 187,
    Comma = 188,
    Minus = 189,
    Period = 190,
    Slash = 191,
    Bar = 192,
    BracketLeft = 219,
    Backslash = 220,
    BracketRight = 221,
    Quote = 222,
    KeyCount
  };
  enum ESpecialKeyState {
    eShiftPressed = 0x01,
    eCtrlPressed = 0x02,
    eAltPressed = 0x04,
    eCapsToggled = 0x08,
    eNumToggled = 0x10,
    eScrollToggled = 0x20
  };
  EKeyState m_state;
  EKeyCode m_keyCode;
  unsigned char m_specialKeyState;
  unsigned char m_asciiCode;
  unsigned int m_wcharCode;
};
File

IFlashPlayer.h

SFlashKeyEvent::EKeyCode Enumeration
C++
enum EKeyCode {
  VoidSymbol = 0,
  A = 65,
  B,
  C,
  D,
  E,
  F,
  G,
  H,
  I,
  J,
  K,
  L,
  M,
  N,
  O,
  P,
  Q,
  R,
  S,
  T,
  U,
  V,
  W,
  X,
  Y,
  Z,
  Num0 = 48,
  Num1,
  Num2,
  Num3,
  Num4,
  Num5,
  Num6,
  Num7,
  Num8,
  Num9,
  KP_0 = 96,
  KP_1,
  KP_2,
  KP_3,
  KP_4,
  KP_5,
  KP_6,
  KP_7,
  KP_8,
  KP_9,
  KP_Multiply,
  KP_Add,
  KP_Enter,
  KP_Subtract,
  KP_Decimal,
  KP_Divide,
  F1 = 112,
  F2,
  F3,
  F4,
  F5,
  F6,
  F7,
  F8,
  F9,
  F10,
  F11,
  F12,
  F13,
  F14,
  F15,
  Backspace = 8,
  Tab,
  Clear = 12,
  Return,
  Shift = 16,
  Control,
  Alt,
  CapsLock = 20,
  Escape = 27,
  Space = 32,
  PageUp,
  PageDown,
  End = 35,
  Home,
  Left,
  Up,
  Right,
  Down,
  Insert = 45,
  Delete,
  Help,
  NumLock = 144,
  ScrollLock = 145,
  Semicolon = 186,
  Equal = 187,
  Comma = 188,
  Minus = 189,
  Period = 190,
  Slash = 191,
  Bar = 192,
  BracketLeft = 219,
  Backslash = 220,
  BracketRight = 221,
  Quote = 222,
  KeyCount
};
File

IFlashPlayer.h

Members
Members
Description
A = 65
A through Z and numbers 0 through 9.
KP_0 = 96
Numeric keypad.
F1 = 112
Function keys.
Backspace = 8
Other keys.
CapsLock = 20
Toggle
NumLock = 144
Toggle
ScrollLock = 145
Toggle
Comma = 188
Platform specific?
Period = 190
Platform specific?
KeyCount
Total number of keys.
SFlashKeyEvent::EKeyState Enumeration
C++
enum EKeyState {
  eKeyDown,
  eKeyUp
};
File

IFlashPlayer.h

SFlashKeyEvent::ESpecialKeyState Enumeration
C++
enum ESpecialKeyState {
  eShiftPressed = 0x01,
  eCtrlPressed = 0x02,
  eAltPressed = 0x04,
  eCapsToggled = 0x08,
  eNumToggled = 0x10,
  eScrollToggled = 0x20
};
File

IFlashPlayer.h

SFlashKeyEvent::m_asciiCode Data Member
C++
unsigned char m_asciiCode;
SFlashKeyEvent::m_keyCode Data Member
C++
EKeyCode m_keyCode;
SFlashKeyEvent::m_specialKeyState Data Member
C++
unsigned char m_specialKeyState;
SFlashKeyEvent::m_state Data Member
C++
EKeyState m_state;
SFlashKeyEvent::m_wcharCode Data Member
C++
unsigned int m_wcharCode;
SFlashKeyEvent::SFlashKeyEvent Constructor
C++
SFlashKeyEvent(EKeyState state, EKeyCode keyCode, unsigned char specialKeyState, unsigned char asciiCode, unsigned int wcharCode);