Types and defines fore brlapi key codes -
Key codes are unsigned 64 bit integers. This 64-bit space is split into 3 parts:
bits 63-32 (BRLAPI_KEY_FLAGS_MASK), flags: bits 39-32 are standard X modifiers (shift, control, meta, ...). Other flags are used for some commands, see documentation of BRLAPI_KEY_FLG_* for their respective uses.
bits 31-29 (BRLAPI_KEY_TYPE_MASK), key type: either BRLAPI_KEY_TYPE_CMD for braille commands, or BRLAPI_KEY_TYPE_SYM for standard X keysyms.
bits 28-0 (BRLAPI_KEY_CODE_MASK), key code: for braille commands, see BRLAPI_KEY_CMD_* ; for standard X keysyms, this is the keysym value, see X11 documentation, a complete list is probably available on your system in /usr/include/X11/keysymdef.h
The third part is itself split into two parts: a command number and a command value. The relative sizes of these parts vary according to the key type.
For a braille command, bits 28-16 (BRLAPI_KEY_CMD_BLK_MASK) hold the braille command number, while bits 15-0 (BRLAPI_KEY_CMD_ARG_MASK) hold the command value.
For a X keysym, if it is a unicode keysym (0x1uvwxyz), then the command number part is 0x1000000 and the value part is 0xuvwxyz. Else, the command part is held by bits 28-8 and the value part is held by bits 7-0. This permits to easily handle usual cases like 0x00xy (latin1), 0x01xy (latin2), XK_Backspace (0xff08, backspace), XK_Tab (0xff09, tab), ...
For instance, if key == 0x0000000020010008,
(key & BRLAPI_KEY_TYPE_MASK) == BRLAPI_KEY_TYPE_CMD, so it's a braille command
(key & BRLAPI_KEY_CMD_BLK_MASK) == BRLAPI_KEY_CMD_ROUTE, so it's the braille route command.
(key & BRLAPI_KEY_CMD_ARG_MASK) == 8, so the highlighted cell is the 9th one (cells are numbered from 0)
(key & BRLAPI_KEY_FLAGS_MASK) == 0, so no modifier key was pressed during the command, and no particular flag applies to the command.
if key == 0x000000010000FF09,
(key & BRLAPI_KEY_TYPE_MASK) == BRLAPI_KEY_TYPE_SYM, so it's a keysym
(key & BRLAPI_KEY_CODE_MASK) == XK_Tab, so it's the tab key. BRLAPI_KEY_SYM_TAB can also be used here, as well as a few other BRLAPI_KEY_SYM_* constants which are provided to avoid having to include X11/keysymdef.h
(key & BRLAPI_KEY_FLAGS_MASK) == BRLAPI_KEY_FLG_SHIFT, so the shift modifier was pressed during the command.
in the X11 standard some keysyms are directly unicode, for instance if key == 0x0000000001001EA0,
(key & BRLAPI_KEY_TYPE_MASK) == BRLAPI_KEY_TYPE_SYM, so it's a keysym
(key & BRLAPI_KEY_SYM_UNICODE) != 0 so it's a unicode keysym, whose value is key & (BRLAPI_KEY_SYM_UNICODE-1). Of course, one can also consider (key & BRLAPI_KEY_CODE_MASK) == XK_Abelowdot
(key & BRLAPI_KEY_FLAGS_MASK) == 0, so no modifier key was pressed during the command, and no particular flag applies to the command.
The brlapi_expandKeyCode() function may be used for splitting key codes into these parts.
upper-left dot of standard braille cell
middle-left dot of standard braille cell
lower-left dot of standard braille cell
upper-right dot of standard braille cell
middle-right dot of standard braille cell
lower-right dot of standard braille cell
lower-left dot of computer braille cell
lower-right dot of computer braille cell
space key
space key pressed
Value:
( ((dot1)? BRLAPI_DOT1: 0) | ((dot2)? BRLAPI_DOT2: 0) | ((dot3)? BRLAPI_DOT3: 0) | ((dot4)? BRLAPI_DOT4: 0) | ((dot5)? BRLAPI_DOT5: 0) | ((dot6)? BRLAPI_DOT6: 0) | ((dot7)? BRLAPI_DOT7: 0) | ((dot8)? BRLAPI_DOT8: 0) )
Helper macro to easily produce braille patterns
deprecated definition of CLIP_APPEND - append characters to clipboard
Mask for braille command value
Shift for braille command value
set autospeak completed words on/off
set autospeak deleted characters on/off
set autospeak inserted characters on/off
set autospeak replaced characters on/off
set autospeak selected character on/off
set autospeak selected line on/off
set attribute blinking on/off
go down to nearest line with different highlighting
go up to nearest line with different highlighting
set attribute underlining on/off
set autorepeat on/off
set autospeak on/off
go back after cursor tracking
Mask for braille command type
Shift for braille command type
go to bottom line
go to beginning of bottom line
set braille input mode dots/text
set capital letter blinking on/off
go left one character
go right one character
append to clipboard from character
append characters to clipboard
copy characters to clipboard
start new clipboard at character
restore clipboard from disk
save clipboard to disk
switch to command context
set control modifier of next typed character or emulated key on/off
linear copy to character
rectangular copy to character
deprecated definition of CLIP_COPY - copy characters to clipboard
set cursor blinking on/off
set hidden cursor on/off
bring cursor to line
set cursor style block/underline
set cursor tracking on/off
set cursor visibility on/off
deprecated definition of CLIP_ADD - append to clipboard from character
deprecated definition of CLIP_NEW - start new clipboard at character
deprecated definition of COPY_LINE - linear copy to character
deprecated definition of COPY_RECT - rectangular copy to character
describe current character
describe character
set display mode attributes/text
set screen image frozen/unfrozen
go left one window
go left to nearest non-blank window
go right one window
go right to nearest non-blank window
go to selected line
go to remembered window position
enter/leave help display
go to cursor
go left half a window
go right half a window
enter/leave status display
enter/leave command learn mode
go to beginning of line
go down one line
go to end of line
go up one line
go to first item
go to last item
go to next item
select next choice
go to previous item
go to previous menu level
select previous choice
set meta modifier of next typed character or emulated key on/off
stop speaking
do nothing
go down to nearest line with different character
go down to nearest line with different content
go down to nearest line with less indent than character
go down to first line of next paragraph
go down to next command prompt
search forward for clipboard text
braille display temporarily unavailable
AT (set 2) keyboard scan code
type braille character
PS/2 (set 3) keyboard scan code
XT (set 1) keyboard scan code
insert clipboard text at cursor
insert clipboard history entry at cursor
go up to nearest line with different character
go up to nearest line with different content
restore preferences from disk
enter/leave preferences menu
save preferences to disk
go up to nearest line with less indent than character
go up to last line of previous paragraph
go up to previous command prompt
search backward for clipboard text
restart braille driver
restart speech driver
go to cursor or go back after cursor tracking
bring cursor to character
bring cursor to speech location
speak from top of screen through current line
speak from current line through bottom of screen
increase speech rate
speak current line
increase speech volume
decrease speech rate
decrease speech volume
set the attributes table
set the contraction table
set the keyboard table
set the language profile
set the text table
place left end of window at character
remember current window position
set shift modifier of next typed character or emulated key on/off
set speech location visibility on/off
set text style 6-dot/8-dot
set skipping of blank windows on/off
set skipping of lines with identical content on/off
set sliding window on/off
speak current character
speak current line
speak speech location
speak current word
go to and speak first non-blank character on line
go to and speak first non-blank line on screen
go to and speak last non-blank character on line
go to and speak last non-blank line on screen
go to and speak next character
go to and speak next line
go to and speak next word
go to and speak previous character
go to and speak previous line
go to and speak previous word
spell current word
go to current speech position
switch to virtual terminal
switch to next virtual terminal
switch to previous virtual terminal
show the current date and time
go to top line
go to beginning of top line
current reading location
set alert tunes on/off
set upper modifier of next typed character or emulated key on/off
go down several lines
go up several lines
Mask for code of brlapi_keyCode_t
Shift for code of brlapi_keyCode_t
Mask for flags of brlapi_keyCode_t
Shift for flags of brlapi_keyCode_t
control key pressed
it is an emulation 0 scan code
it is an emulation 1 scan code
it is a release scan code
scale arg=0X00-0XFF to screen height
go to beginning of line
meta key pressed
Standard X modifiers Mod1 modifier (AKA meta)
Mod2 modifier (usually numlock)
Mod3 modifier
Mod4 modifier
Mod5 modifier (usually Alt-Gr)
bring cursor into window after function
shift key pressed
mask for all toggle flags
disable feature
enable feature
convert to uppercase
Brlapi_keyCode_t's biggest value
As defined in <stdint.h>
Standard X keysyms
Braille command brlapi_keyCode_t
Mask for type of brlapi_keyCode_t
Shift for type of brlapi_keyCode_t
X Keysym brlapi_keyCode_t
Unsigned print format for brlapi_keyCode_t
Hex print format for brlapi_keyCode_t
Generated automatically by Doxygen for BrlAPI from the source code.