controller

enum UxnButton : u8

Used for the UXN controller, it has these values:

  • A = 0x01
  • B = 0x02
  • Select = 0x04
  • Start = 0x08
  • Up = 0x10
  • Down = 0x20
  • Left = 0x40
  • Right = 0x80

uxn_set_controller_vector

Parameters: addr vec

Sets the controller vector to vec

uxn_get_button

Returns: cell button

Gets the value from the Controller/button port

uxn_get_key

Returns: cell key

Gets the value from the Controller/key port