SIM_MATRIX_KB(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– SIM_MATRIX_KB πŸ’–

okay bestie, so this is a HAL Component from the <rainbow>LinuxCNC</rainbow> docs, and it's literally the little glow-up machine that turns HAL pin inputs into keycodes. yes, keycodes. like, you press a thing, it says a number. iconic behavior honestly. πŸŽ€


✨ NAME ✨

sim_matrix_kb β€” convert HAL pin inputs to keycodes

like the name says!! matrix. keyboard. simulation. it's giving "pretend keyboard that lives inside your HAL config" and we're obsessed. πŸ’…


✨ SYNOPSIS ✨

loadrt sim_matrix_kb [count=N|names=name1[,name2...]]

that's it, that's the whole summoning ritual. you loadrt it, you tell it either count=N (gimme N of these) or names=name1[,name2...] (gimme these specific ones by name), and boom, she's alive. no cap. πŸ¦‹


✨ FUNCTIONS ✨

  • sim-matrix-kb.N β€” requires a floating-point thread. like, she will NOT run on an integer thread, bestie. do not try it. that's a hard requirement, fr fr. 🌸

✨ PINS ✨

okay this is the juicy part. here's every single pin, no skips, no cuts, we keep them ALL. πŸ’œ

  • sim-matrix-kb.N.out u32 out β€” the pin that outputs the Keycode. this is the moment. the main character. she spits out the keycode and everyone claps. πŸ‘‘
  • sim-matrix-kb.N.button.c00.rMM bit in (MM=00..07) β€” array of inputs. column c00, rows MM going from 00 all the way to 07. πŸ“
  • sim-matrix-kb.N.button.c01.rMM bit in (MM=00..07) β€” array of inputs. column c01, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c02.rMM bit in (MM=00..07) β€” array of inputs. column c02, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c03.rMM bit in (MM=00..07) β€” array of inputs. column c03, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c04.rMM bit in (MM=00..07) β€” array of inputs. column c04, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c05.rMM bit in (MM=00..07) β€” array of inputs. column c05, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c06.rMM bit in (MM=00..07) β€” array of inputs. column c06, rows MM=00..07. πŸ“
  • sim-matrix-kb.N.button.c07.rMM bit in (MM=00..07) β€” array of inputs. column c07, rows MM=00..07. πŸ“
🫢 quick vibe check: that's eight columns (c00 β†’ c07) and for each column the rows run 00..07. so c00.r00, c00.r01, ... c07.r07. all bit type, all in. the N in sim-matrix-kb.N is the instance number from your count=/names= situation above. iykyk. ✨

✨ AUTHOR ✨

Chris S Morley β€” shoutout to the legend who made this. thank you for your service, king. πŸ˜­πŸ’–


✨ LICENSE ✨

GPL β€” that's the license, bestie. free as in freedom, slay. πŸ‘‘


and that's the whole page!! you ate that. πŸŽ€πŸ¦‹

this was from the <purple>LinuxCNC Documentation</purple>, dated <cyan>2026-03-17</cyan>, and the manual page itself is SIM_MATRIX_KB(9) β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from