Skip to content

Instantly share code, notes, and snippets.

View neilrackett's full-sized avatar

Neil Rackett neilrackett

View GitHub Profile
@palmerj
palmerj / xbox_button_names.md
Last active June 12, 2026 08:15
Xbox Controller Button Names and Layout

Buttons

  • D-Pad == Directional Pad
  • RSB == Right Stick Button
  • LSB == Left Stick Button
  • RB == Right Bumper
  • RT == Right Trigger
  • LB == Left Bumper
  • LT == Left Trigger
  • Y == Y Button (Top)
@nuclearglow
nuclearglow / convert-arraybuffer.js
Created January 26, 2018 10:30
ArrayBuffer <-> JSON <-> ArrayBuffer
// array buffer to JSON
const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer)));
// send around
// JSON to ArrayBuffer
new Uint8Array(JSON.parse(dataString)).buffer