Skip to content

Instantly share code, notes, and snippets.

@Brybry
Created January 20, 2012 11:44
Show Gist options
  • Save Brybry/1646976 to your computer and use it in GitHub Desktop.
Save Brybry/1646976 to your computer and use it in GitHub Desktop.
wTerm input device notes
Values received by SDLTerminal::handleKeyboardEvent
btk - hp bluetooth keyboard, the same as vkb unless noted
vkb - virtual keyboard (wTerm custom, not native)
usb - standard usb keyboard, the same as btk unless noted
PLUGIN/HYBRID MODE:
escape:
usb: eaten
F-keys:
usb: eaten
ctrl+h:
btk: sym 'backspace' unicode '^H' (0x8) + ctrl modifier
vkb: sym 'h' unicode 'h' (0x68) + ctrl modifier
ctrl+a:
btk: eaten
ctrl+[:
btk: eaten
ctrl+I:
btk: sym 'tab' unicode '^I' (0x9) + ctrl modifier
vkb: sym 'i' unicode 'i' (0x69) + ctrl modifier
ctrl+/:
btk: sym 'backspace' unicode '^H' (0x8) + ctrl modifier
vkb: '/' unicode '/' (0x2F) + ctrl modifier
ctrl+':
btk: sym 'g' unicode 'g' (0x67) + ctrl modifier
vkb: ''' unicode ''' (0x27) + ctrl modifier
ctrl+>:
btk: eaten
ctrl+3:
btk: eaten
ctrl+4:
btk: sym '\' unicode '\' (0x5C) + ctrl modifier
ctrl+5:
btk: sym ']' unicode ']' (0x5D) + ctrl modifier
ctrl+6:
btk: sym '^' unicode '^' (0x5E) + ctrl modifier
ctrl+7:
btk: sym '_' unicode '_' (0x5F) + ctrl modifier
ctrl+8:
btk: sym 'backspace' unicode '^H' (0x8) + ctrl modifier
ctrl+-:
btk: sym '_' unicode '_' (0x5F) + ctrl modifier
vkb: sym '-' unicode '-' (0x2D) + ctrl modifier
up arrow:
btk: sym 'unknown key' unicode '?' (0xE0A0)
vkb: sym 'up' unicode '?' (0x0)
down arrow:
btk: sym 'unknown key' unicode '?' (0xE0A1)
vkb: sym 'down' unicode '?' (0x0)
left arrow:
btk: sym 'unknown key' unicode '?' (0xE0A2)
vkb: sym 'left' unicode '?' (0x0)
right arrow:
btk: sym 'unknown key' unicode '?' (0xE0A3)
vkb: sym 'right' unicode '?' (0x0)
symbol: sym 'right alt' unicode 0x0
numlock:
usb: eaten and does nothing to modify numpad keys
printscreen:
usb: eaten
scroll lock:
usb: eaten
pause/break:
usb: sym 'unknown' unicode 0xE0D1
insert:
usb: sym 'unknown' unicode 0xE0B0
home:
usb: sym 'unknown' unicode 0xE0B1
end:
usb: sym 'unknown' unicode 0xE0B2
page up:
usb: sym 'unknown' unicode 0xE0B3
page down:
usb: sym 'unknown' unicode 0xE0B4
delete:
usb: sym 'unknown' unicode 0x7F
right alt and left alt (usb) both send: sym 'right alt' unicode 0x0
right ctrl and left ctrl both send: sym 'right ctrl' unicode 0x0
right shift and left shift both send: sym 'left shift' unicode 0x0
-----
STANDALONE MODE:
the same as above unless noted
F-keys:
usb: F1-F12 seen as syms 0-9:; and unicode 0x30 to 0x3B
ctrl+c:
btk: eaten
ctrl+v:
btk: eaten
up arrow:
btk: sym 'unknown key' unicode '^S' (0x13)
down arrow:
btk: sym 'unknown key' unicode '^U' (0x15)
left arrow:
btk: sym 'unknown key' unicode '^R' (0x12)
right arrow:
btk: sym 'unknown key' unicode '^T' (0x14)
numlock:
usb: sym 'unknown' unicode '%' (0x25) does nothing to modify numpad keys
scroll lock:
usb: sym 'unknown' unicode '&' (0x26)
pause/break:
usb: sym 'backspace' unicode '^H' 0x8
insert:
usb: sym 'unknown' unicode '^F' 0x6
home:
usb: unicode '^P' 0x10
end:
usb: unicode '^Q' 0x10
page up:
usb: unicode '^V' 0x16
page down:
usb: unicode '^W' 0x17
delete:
usb: unicode '^G' 0x7
numpad return:
usb: unicode '^E' 0x5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment