Changeset c072a29 in mainline for uspace/drv/bus/usb/usbhid/kbd/conv.c


Ignore:
Timestamp:
2014-09-15T15:57:32Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c79fb5
Parents:
662ebc8
Message:

use the PAUSE / BREAK key to activate the kernel console in compositor (F15 on some strange keyboards)
this avoids issues with stuck modifier keys and other surprises
it is also unlikely that any client applications would like to use these keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/kbd/conv.c

    r662ebc8 rc072a29  
    4545 */
    4646static int scanmap_simple[255] = {
    47 
    48 //      [0x29] = KC_BACKTICK,
    49 
    50 //      [0x02] = KC_1,
    51 //      [0x03] = KC_2,
    5247        [0x04] = KC_A,
    5348        [0x05] = KC_B,
     
    9489        [0x2c] = KC_SPACE,
    9590
    96         [0x2d] = KC_MINUS,  // same as DASH? (- or _)
     91        [0x2d] = KC_MINUS,
    9792        [0x2e] = KC_EQUALS,
    9893        [0x2f] = KC_LBRACKET,
    9994        [0x30] = KC_RBRACKET,
    10095        [0x31] = KC_BACKSLASH,
    101         //[0x32] = KC_, // TODO: HASH??? maybe same as 0x31 - backslash
    102         [0x32] = KC_BACKSLASH,
     96        [0x32] = KC_HASH,
    10397        [0x33] = KC_SEMICOLON,
    104         [0x34] = KC_QUOTE,  // same as APOSTROPHE? (')
    105         [0x35] = KC_BACKTICK,  // same as GRAVE ACCENT?? (`)
     98        [0x34] = KC_QUOTE,
     99        [0x35] = KC_BACKTICK,
    106100        [0x36] = KC_COMMA,
    107101        [0x37] = KC_PERIOD,
     
    137131        [0x52] = KC_UP,
    138132
    139         //[0x64] = // some funny key
    140 
    141         [0xe0] = KC_LCTRL,
    142         [0xe1] = KC_LSHIFT,
    143         [0xe2] = KC_LALT,
    144         //[0xe3] = KC_L // TODO: left GUI
    145         [0xe4] = KC_RCTRL,
    146         [0xe5] = KC_RSHIFT,
    147         [0xe6] = KC_RALT,
    148         //[0xe7] = KC_R // TODO: right GUI
    149 
    150133        [0x53] = KC_NUM_LOCK,
    151134        [0x54] = KC_NSLASH,
     
    164147        [0x61] = KC_N9,
    165148        [0x62] = KC_N0,
    166         [0x63] = KC_NPERIOD
     149        [0x63] = KC_NPERIOD,
    167150
     151        [0x64] = KC_BACKSLASH,
     152
     153        [0x9a] = KC_SYSREQ,
     154
     155        [0xe0] = KC_LCTRL,
     156        [0xe1] = KC_LSHIFT,
     157        [0xe2] = KC_LALT,
     158        [0xe4] = KC_RCTRL,
     159        [0xe5] = KC_RSHIFT,
     160        [0xe6] = KC_RALT,
    168161};
    169162
     
    173166 *
    174167 * @param scancode USB HID key code (from HID Usage Tables).
    175  * 
     168 *
    176169 * @retval HelenOS key code corresponding to the given USB HID key code.
    177170 */
Note: See TracChangeset for help on using the changeset viewer.