Melee Modding Library
2.0.0
A C library for modding Super Smash Bros Melee
|
Queue inputs for a specific port. More...
Go to the source code of this file.
Data Structures | |
struct | ControllerInput |
A single controller input made by the queue. More... | |
struct | InputQueue |
Manages a list of inputs. More... | |
Macros | |
#define | INIT_INPUT_QUEUE(port) {NULL, 0, 0, port, DEFAULT_CONTROLLER} |
Functions | |
void | addInputToQueue (InputQueue *queue, const RawInput input) |
Add single input to queue. More... | |
void | addMoveToQueue (InputQueue *queue, const Move *move) |
Add entire move to queue. More... | |
void | processInputQueue (InputQueue *queue) |
Check if any inputs need to be written. More... | |
Queue inputs for a specific port.
struct ControllerInput |
struct InputQueue |
Manages a list of inputs.
Data Fields | ||
---|---|---|
ControllerInput * | queue |
Array of inputs to execute |
size_t | size |
Number of inputs in queue |
size_t | capacity |
Capacity of queue |
unsigned | port |
Port that this input queue belongs to |
Controller | controller |
Controller this queue uses |
#define INIT_INPUT_QUEUE | ( | port | ) | {NULL, 0, 0, port, DEFAULT_CONTROLLER} |
Default InputQueue struct
void processInputQueue | ( | InputQueue * | queue | ) |