brlapi_keycodes.h(3)

πŸ“¦
version 6.9.1 Β· 6 versions
, in centos-stream 10, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ 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 a value and turns it into a keycode-shaped thing ✨
  • BRLAPI_PRIxKEYCODE β€” expands to exactly PRIx64, lowercase-hex printf energy πŸ’œ
  • BRLAPI_PRIuKEYCODE β€” expands to exactly PRIu64, 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 duty
  • BRLAPI_KEY_FLAGS_SHIFT β€” 32, the shift that gets you up into flag territory
  • BRLAPI_KEY_FLG(v) β€” the flag-maker macro, takes a v
  • BRLAPI_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 type
  • BRLAPI_KEY_TYPE_SHIFT β€” 29, shift amount for the type field
  • BRLAPI_KEY_TYPE_CMD β€” UINT64_C(0X0000000020000000), the command type 🫑
  • BRLAPI_KEY_TYPE_SYM β€” UINT64_C(0X0000000000000000), the symbol type, sitting pretty at zero
  • BRLAPI_KEY_CODE_MASK β€” UINT64_C(0X000000001FFFFFFF), the mask for the code bits
  • BRLAPI_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 commands
  • BRLAPI_KEY_CMD_BLK_SHIFT β€” 16, how far you slide to reach the command block
  • BRLAPI_KEY_CMD_ARG_MASK β€” UINT64_C(0X0000FFFF), the command argument mask
  • BRLAPI_KEY_CMD_ARG_SHIFT β€” 0, again zero, again unbothered πŸ’…
  • BRLAPI_KEY_CMD(v) β€” the command-maker macro, takes a v
  • BRLAPI_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 β€” 0
  • BRLAPI_DRV_KEY_NUMBER_MASK β€” 0XFF
  • BRLAPI_DRV_KEY_NUMBER(code) β€” the macro that pulls the number out of a code
  • BRLAPI_DRV_KEY_GROUP_SHIFT β€” 8
  • BRLAPI_DRV_KEY_GROUP_MASK β€” 0XFF00
  • BRLAPI_DRV_KEY_GROUP(code) β€” the macro that pulls the group out of a code
  • BRLAPI_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 capital X in 0X... is not a typo, it is the assignment. do not freestyle it πŸ™ˆ

πŸ¦‹ Typedefs πŸ¦‹

  • typedef uint64_t brlapi_keyCode_t β€” the keycode type itself, a uint64_t and 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