Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] GPIO Configuration for four Joysticks #190

Open
asdfjkl opened this issue Sep 5, 2021 · 4 comments
Open

[FR] GPIO Configuration for four Joysticks #190

asdfjkl opened this issue Sep 5, 2021 · 4 comments

Comments

@asdfjkl
Copy link

asdfjkl commented Sep 5, 2021

First: BMC64 is awesome!

I would like to use it to play MULE with four players. VICE can emulate a four-player adapter. In order to reduce latency, I would like to wire four (old) C64 joysticks via the GPIO ports directly. Current default GPIO configs only wire two joysticks.

Is this even possible, i.e. assign two joysticks via GPIO ports to the normal joystick ports and two other joysticks via GPIO ports to the virtual four-player user port adapter? I am somewhat lost w.t.t. configuration... The 26 GPIO pins should be enough to write four joysticks plus rudimentary menu navigation (up, down, left, right + fire). Or just four joysticks + usb keyboard.

@randyrossi
Copy link
Owner

randyrossi commented Sep 5, 2021 via email

@asdfjkl
Copy link
Author

asdfjkl commented Sep 28, 2021

Do you have any hint where I might start to read/understand the code/what would need to be done? I might give it a try, not sure if I will succeed.

Thing is that delay adds up. 15ms for the controller, two frames (=40ms) by bmc (which is actually quite awesome, but still), then another 40ms by my TV in game mode... anything over 30ms is noticeable imho....

@randyrossi
Copy link
Owner

randyrossi commented Sep 28, 2021 via email

@SDMatt2020
Copy link

SDMatt2020 commented Jan 18, 2022

@asdfjkl
It would be game dependent, but what if you wired up a joystick into the GPIO header and matched the input of the keyboard matrix? For MULE, this would map the player 3 and 4 keyboard commands into the appropriate keyboard equivalents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants