mirror of
https://github.com/mnzlmstr/N64toiQue
synced 2025-01-07 11:58:07 -05:00
19 lines
634 B
C
19 lines
634 B
C
#ifndef OUTPUT_H
|
|
#define OUTPUT_H
|
|
|
|
#include "ControllerData.h"
|
|
|
|
/** Function to output Data stored in ControllerData struct to the iQue console.
|
|
* Buttons states are directly set usig digitalWrite(), Axis Data is written by
|
|
* Simulating the 90° shifted quadrate encoding used by the N64 joysticks.
|
|
* As these operate on a relative basis the difference between the current
|
|
* and the last joystick positions are calculated and simulated.
|
|
*/
|
|
extern void outputToiQue(ControllerData *data);
|
|
|
|
/** Function to setup the IO used for interfacing with the N64-Controller
|
|
* and the iQue-Console
|
|
*/
|
|
extern void setupIO();
|
|
|
|
#endif |