brlapi_keycodes.h(3)
β¨ NAME β¨
brlapi_keycodes.h β okay so this is the keycodes header from BrlAPI, filed under Library Functions Manual π bestie, this page is literally just the receipts for every keycode macro the library defines. no plot twist, just constants π
πΈ SYNOPSIS πΈ
Pull it in like this:
#include 'brlapi_constants.h'
π Macros π
Okay so here's the full lineup, in order, no skips, no cuts β every single one:
BRLAPI_KEYCODE_C(value)β the macro that takes avalueand turns it into a keycode-shaped thing β¨BRLAPI_PRIxKEYCODEβ expands to exactlyPRIx64, lowercase-hex printf energy πBRLAPI_PRIuKEYCODEβ expands to exactlyPRIu64, unsigned decimal printf energy πBRLAPI_KEY_MAXβUINT64_C(0XFFFFFFFFFFFFFFFF), the absolute ceiling, the final boss, no cap π₯BRLAPI_KEY_FLAGS_MASKβUINT64_C(0XFFFFFFFF00000000), the top half of the bits doing flag dutyBRLAPI_KEY_FLAGS_SHIFTβ32, the shift that gets you up into flag territoryBRLAPI_KEY_FLG(v)β the flag-maker macro, takes avBRLAPI_KEY_FLG_MOD1βBRLAPI_KEY_FLG(0x00000008)π«BRLAPI_KEY_FLG_MOD2βBRLAPI_KEY_FLG(0x00000010)π«BRLAPI_KEY_FLG_MOD3βBRLAPI_KEY_FLG(0x00000020)π«BRLAPI_KEY_FLG_MOD4βBRLAPI_KEY_FLG(0x00000040)π«BRLAPI_KEY_FLG_MOD5βBRLAPI_KEY_FLG(0x00000080)π«BRLAPI_KEY_TYPE_MASKβUINT64_C(0X00000000E0000000), the mask that isolates the typeBRLAPI_KEY_TYPE_SHIFTβ29, shift amount for the type fieldBRLAPI_KEY_TYPE_CMDβUINT64_C(0X0000000020000000), the command type π«‘BRLAPI_KEY_TYPE_SYMβUINT64_C(0X0000000000000000), the symbol type, sitting pretty at zeroBRLAPI_KEY_CODE_MASKβUINT64_C(0X000000001FFFFFFF), the mask for the code bitsBRLAPI_KEY_CODE_SHIFTβ0, zero shift, we stay exactly where we are bestie ποΈBRLAPI_KEY_CMD_BLK_MASKβUINT64_C(0X1FFF0000), the block field mask for commandsBRLAPI_KEY_CMD_BLK_SHIFTβ16, how far you slide to reach the command blockBRLAPI_KEY_CMD_ARG_MASKβUINT64_C(0X0000FFFF), the command argument maskBRLAPI_KEY_CMD_ARG_SHIFTβ0, again zero, again unbothered πBRLAPI_KEY_CMD(v)β the command-maker macro, takes avBRLAPI_KEY_SYM_BACKSPACEβUINT64_C(0X0000FF08)β«BRLAPI_KEY_SYM_TABβUINT64_C(0X0000FF09)β©BRLAPI_KEY_SYM_LINEFEEDβUINT64_C(0X0000FF0D)πBRLAPI_KEY_SYM_ESCAPEβUINT64_C(0X0000FF1B)πͺBRLAPI_KEY_SYM_HOMEβUINT64_C(0X0000FF50)πBRLAPI_KEY_SYM_LEFTβUINT64_C(0X0000FF51)β¬ οΈBRLAPI_KEY_SYM_UPβUINT64_C(0X0000FF52)β¬οΈBRLAPI_KEY_SYM_RIGHTβUINT64_C(0X0000FF53)β‘οΈBRLAPI_KEY_SYM_DOWNβUINT64_C(0X0000FF54)β¬οΈBRLAPI_KEY_SYM_PAGE_UPβUINT64_C(0X0000FF55)πBRLAPI_KEY_SYM_PAGE_DOWNβUINT64_C(0X0000FF56)πBRLAPI_KEY_SYM_ENDβUINT64_C(0X0000FF57)πBRLAPI_KEY_SYM_INSERTβUINT64_C(0X0000FF63)βοΈBRLAPI_KEY_SYM_FUNCTIONβUINT64_C(0X0000FFBE)ποΈBRLAPI_KEY_SYM_DELETEβUINT64_C(0X0000FFFF)ποΈBRLAPI_KEY_SYM_UNICODEβUINT64_C(0X01000000)πBRLAPI_DRV_KEY_PRESSβBRLAPI_KEYCODE_C(0X8000000000000000), the driver key-press code π₯BRLAPI_DRV_KEY_NUMBER_SHIFTβ0BRLAPI_DRV_KEY_NUMBER_MASKβ0XFFBRLAPI_DRV_KEY_NUMBER(code)β the macro that pulls the number out of acodeBRLAPI_DRV_KEY_GROUP_SHIFTβ8BRLAPI_DRV_KEY_GROUP_MASKβ0XFF00BRLAPI_DRV_KEY_GROUP(code)β the macro that pulls the group out of acodeBRLAPI_DRV_KEY_VALUE_MASKβ(BRLAPI_DRV_KEY_GROUP_MASK | BRLAPI_DRV_KEY_NUMBER_MASK), both masks fused into one, iconic behavior β¨BRLAPI_DRV_KEY_NUMBER_ANYβ0XFF
bestie, if you're copy-pasting these, copy them exactly. the capitalXin0X...is not a typo, it is the assignment. do not freestyle it π
π¦ Typedefs π¦
typedef uint64_t brlapi_keyCode_tβ the keycode type itself, auint64_tand honestly? main character energy π
π Author π
Generated automatically by Doxygen for BrlAPI from the source code. not me getting emotionally attached to an autogenerated author section π
and that's the whole page, bestie β no options, no flags, no exit statuses, just a very well-documented pile of macros. you ate this. periodt. π
signing off from the bottom of the page: BrlAPI, Version 0.8, manual page brlapi_keycodes.h(3) π«Άβ¨
π¦ where this page comes from
- centos-stream 10: brlapi-devel 0.8.5-16.el10 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu resolute: libbrlapi-dev 6.7-1ubuntu6
- ubuntu stonking: libbrlapi-dev 6.9.1+repack-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms