First upload. Untested software
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
/* Baremetal Risc-V USB <=> Amiga Joystick/Mouse HID converter.
|
||||
* March 2026 - Anders Holck
|
||||
* This software has no license. If you choose to use, please include my name :)
|
||||
*/
|
||||
|
||||
#ifndef AMIGA_HW_H
|
||||
#define AMIGA_HW_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
int8_t mouse_x;
|
||||
int8_t mouse_y;
|
||||
uint8_t buttons; // Bit 0: Mouse Left, Bit 1: Mouse Right
|
||||
uint8_t joy1; // Bits: 0:Up, 1:Down, 2:Left, 3:Right, 4:Fire
|
||||
uint8_t joy2; // Bits: 0:Up, 1:Down, 2:Left, 3:Right, 4:Fire
|
||||
} amiga_input_t;
|
||||
|
||||
void amiga_hw_poll(amiga_input_t *input);
|
||||
|
||||
#endif /* AMIGA_HW_H */
|
||||
Reference in New Issue
Block a user