Einzelnen Beitrag anzeigen

danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#2

AW: Android - disable hardware button

  Alt 17. Sep 2017, 17:33
OK,
FMX.KeyMapping ....

Delphi-Quellcode:
TrivialKeys: array [0..71] of Word = (
    AKEYCODE_F1, vkF1,
    AKEYCODE_F2, vkF2,
    AKEYCODE_F3, vkF3,
    AKEYCODE_F4, vkF4,
    AKEYCODE_F5, vkF5,
    AKEYCODE_F6, vkF6,
    AKEYCODE_F7, vkF7,
    AKEYCODE_F8, vkF8,
    AKEYCODE_F9, vkF9,
    AKEYCODE_F10, vkF10,
    AKEYCODE_F11, vkF11,
    AKEYCODE_F12, vkF12,
    AKEYCODE_TAB, vkTab,
    AKEYCODE_INSERT, vkInsert,
    AKEYCODE_FORWARD_DEL, vkDelete,
    AKEYCODE_MOVE_HOME, vkHome,
    AKEYCODE_MOVE_END, vkEnd,
    AKEYCODE_PAGE_UP, vkPrior,
    AKEYCODE_PAGE_DOWN, vkNext,
    AKEYCODE_DPAD_UP, vkUp,
    AKEYCODE_DPAD_DOWN, vkDown,
    AKEYCODE_DPAD_LEFT, vkLeft,
    AKEYCODE_DPAD_RIGHT, vkRight,
    AKEYCODE_NUM_LOCK, vkNumLock,
    AKEYCODE_ENTER, vkReturn,
    AKEYCODE_DEL, vkBack,
    AKEYCODE_ESCAPE, vkEscape,

    AKEYCODE_SCROLL_LOCK, vkScroll,
    AKEYCODE_CAPS_LOCK, vkCapital,
    AKEYCODE_CTRL_LEFT, vkLControl,
    AKEYCODE_CTRL_RIGHT, vkRControl,
    AKEYCODE_MENU, vkMenu,
    AKEYCODE_ALT_LEFT, vkLMenu,
    AKEYCODE_ALT_RIGHT, vkRMenu,
    AKEYCODE_SHIFT_LEFT, vkLShift,
    AKEYCODE_SHIFT_RIGHT, vkRShift);

  OtherKeys: array [0..29] of Word = (
    AKEYCODE_HOME, vkBrowserHome,
    AKEYCODE_BACK, vkHardwareBack,
    AKEYCODE_CAMERA, vkCamera,
    AKEYCODE_CLEAR, vkOemClear,
    AKEYCODE_VOLUME_UP, vkVolumeUp ,
    AKEYCODE_VOLUME_DOWN, vkVolumeDown,
    AKEYCODE_MEDIA_PLAY_PAUSE, vkMediaPlayPause,
    AKEYCODE_MEDIA_STOP, vkMediaStop,
    AKEYCODE_MEDIA_NEXT, vkMediaNextTrack,
    AKEYCODE_MEDIA_PREVIOUS, vkMediaPrevTrack,
    AKEYCODE_CONTACTS, vkLaunchMail,
    AKEYCODE_CALENDAR, vkLaunchApp1,
    AKEYCODE_MUSIC, vkLaunchMediaSelect,
    AKEYCODE_CALCULATOR, vkLaunchApp2,
    AKEYCODE_POWER, vkSleep);

  TextKeys: array [0..125] of Word = (
    AKEYCODE_0, vk0,
    AKEYCODE_1, vk1,
    AKEYCODE_2, vk2,
    AKEYCODE_3, vk3,
    AKEYCODE_4, vk4,
    AKEYCODE_5, vk5,
    AKEYCODE_6, vk6,
    AKEYCODE_7, vk7,
    AKEYCODE_8, vk8,
    AKEYCODE_9, vk9,
    AKEYCODE_A, vkA,
    AKEYCODE_B, vkB,
    AKEYCODE_C, vkC,
    AKEYCODE_D, vkD,
    AKEYCODE_E, vkE,
    AKEYCODE_F, vkF,
    AKEYCODE_G, vkG,
    AKEYCODE_H, vkH,
    AKEYCODE_I, vkI,
    AKEYCODE_J, vkJ,
    AKEYCODE_K, vkK,
    AKEYCODE_L, vkL,
    AKEYCODE_M, vkM,
    AKEYCODE_N, vkN,
    AKEYCODE_O, vkO,
    AKEYCODE_P, vkP,
    AKEYCODE_Q, vkQ,
    AKEYCODE_R, vkR,
    AKEYCODE_S, vkS,
    AKEYCODE_T, vkT,
    AKEYCODE_U, vkU,
    AKEYCODE_V, vkV,
    AKEYCODE_W, vkW,
    AKEYCODE_X, vkX,
    AKEYCODE_Y, vkY,
    AKEYCODE_Z, vkZ,
    AKEYCODE_APOSTROPHE, vkQuote,
    AKEYCODE_BACKSLASH, vkBackslash,
    AKEYCODE_COMMA, vkComma,
    AKEYCODE_EQUALS, vkEqual,
    AKEYCODE_GRAVE, vkTilde,
    AKEYCODE_LEFT_BRACKET, vkLeftBracket,
    AKEYCODE_PERIOD, vkPeriod,
    AKEYCODE_MINUS, vkMinus,
    AKEYCODE_RIGHT_BRACKET, vkRightBracket,
    AKEYCODE_SEMICOLON, vkSemicolon,
    AKEYCODE_SLASH, vkSlash,
    AKEYCODE_NUMPAD_0, vkNumpad0,
    AKEYCODE_NUMPAD_1, vkNumpad1,
    AKEYCODE_NUMPAD_2, vkNumpad2,
    AKEYCODE_NUMPAD_3, vkNumpad3,
    AKEYCODE_NUMPAD_4, vkNumpad4,
    AKEYCODE_NUMPAD_5, vkNumpad5,
    AKEYCODE_NUMPAD_6, vkNumpad6,
    AKEYCODE_NUMPAD_7, vkNumpad7,
    AKEYCODE_NUMPAD_8, vkNumpad8,
    AKEYCODE_NUMPAD_9, vkNumpad9,
    AKEYCODE_NUMPAD_ADD, vkAdd,
    AKEYCODE_NUMPAD_DIVIDE, vkDivide,
    AKEYCODE_NUMPAD_DOT, vkDecimal,
    AKEYCODE_NUMPAD_MULTIPLY, vkMultiply,
    AKEYCODE_NUMPAD_SUBTRACT, vkSubtract,
    AKEYCODE_SPACE, vkSpace);
Daniel
  Mit Zitat antworten Zitat