harbaum / MiSTeryNano

Atari STE MiSTery core for the Tang Nano 20k FPGA
109 stars 15 forks source link

DB9 joystick does not want to work. #12

Closed prcoder-1 closed 6 months ago

prcoder-1 commented 6 months ago

The DB9 joystick does not work. At least for me... Only HID joystick works. But it is not very playable due to the limitation on one key at a time. This happened after adding an HID joystick. I think this is because the port became inout instead of input.

diff --git a/src/tangnano20k/top.sv b/src/tangnano20k/top.sv
index 7f604b9..288dbe1 100644
--- a/src/tangnano20k/top.sv
+++ b/src/tangnano20k/top.sv
@@ -29,7 +29,7 @@ module top(
   output [3:0] O_sdram_dqm, // 32/4

   // generic IO, used for mouse/joystick/...
-  input [9:0]  io,
+  inout [9:0]  io,
   // config inputs
   input [3:0]  cfg,
prcoder-1 commented 6 months ago

I think it is my hardware problem. Sorry for the inconvenience.