First upload. Untested software

This commit is contained in:
2026-04-08 17:02:29 +02:00
commit 9b83763318
11 changed files with 698 additions and 0 deletions
+21
View File
@@ -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 */