Continued from here (sorry hungarian guys, I did not want to begin a new topic):
https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/msg48693/#msg48693I think is better to modify your Arduino keyboard project to assign the auxiliary keyboard keys on a game, to a button on a joystick. Almost every game have an internal joystick mode. Space is Fire1, but as you say, some programs or games need more buttons that are assigned to a key.
Hmmm ... now you made me thinking ...
It seems a very clever idea from this point of perspective ... the perspective of the EP softwares ...
But there are other viewpoints ...
- I am lazy and I do not like to hack hardwares ...
- When I see soldering iron, I usually begin to cry ...
- And the outlet problem:
Manipulating the keyboard matrix require a minimum of 15 wires (with power+ground+reset) on the motherboard of the EP.
I think of normal EPs with original cases.
So I have to take out 15 wires from the EP, if I want to place the arduino outside of the EP, connecting the keyboard and/or joysticks to it.
With a PS/2 keyboard, that is possible to place the arduino inside the EP, and taking out as few as 4 wires from the EP (or 6 wires, if I would like to be able to refresh the sw in the arduino without assembling the EP, cause I begin to cry from screwdrivers, too
).
In this case, the joy or controller wires would be an additional 6-9 (or even more, up to 15*2, depending on the pinout and protocol of the joy) wires to take out from the EP ... I would not like that too much ...
And the configuration would be the next problem ... How you mention too, in this way we cannot avoid being able to configure the mapping from the joy directions to keys ... I would have to solve this configuration (don't forget, arduino is inside the EP) from the EP to arduino ...
(Formerly I thought about these things, I could be able to read the keyboard states into arduino (switching the connected arduino lines to input), and in this way the configuration could be possible. Pressing a key on the EP internal keyboard, and after that pressing a connected joystick button, the arduino would be able to set up the mapping between those.)
But this would not be easy, too.
And still ... this is a very interesting idea, you mentioned.
Maybe that would be the nicest (and most involved ...
) solution,
I would left the keyboard handler arduino inside the EP,
I would take out only 6 wires from the EP,
I would extend the software of the inside arduino with the above configuration feature,
and
I would use an external arduino, as well,
and that arduino would convert the different joy and controller inputs to PS/2 keyboard outputs ...
In this case I would connect my joys/controllers like PS/2 keyboards to the EP.
Probably it would not be so important connecting a PS/2 keyboard AND a PS/2 joy/controller together to the EP. And it would not be possible ...
But the joys/controllers would work as keyboards ... and the softwares would be compatible with those ...