libjoybus
Joybus implementation for 32-bit MCUs
Loading...
Searching...
No Matches
joybus_n64_controller_state Struct Reference

N64 controller input state. More...

#include <n64_controller.h>

Data Fields

uint16_t buttons
 Button state.
int8_t stick_x
 Stick x-axis position, nominally -80..80.
int8_t stick_y
 Stick y-axis position, nominally -80..80.

Detailed Description

N64 controller input state.

Matches the wire format of the input state byte-for-byte on a little-endian CPU (wire byte 0 is the low byte of buttons), so it can be sent and received without repacking.


The documentation for this struct was generated from the following file: