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

pico: HID input #769

Merged
merged 5 commits into from
Apr 27, 2023
Merged

pico: HID input #769

merged 5 commits into from
Apr 27, 2023

Conversation

Daft-Freak
Copy link
Collaborator

@Daft-Freak Daft-Freak commented Jun 1, 2022

(Opening this so I don't keep forgetting about it)

USB HID based input for VGA. Draft because I only tested it on three controllers (one of them doesn't work for some reason). Could use some testing on some "common" gamepads (but not xbox stuff as they don't do HID... sigh)

What does work is flashing this uf2 to a PicoSystem

Edit: Patch to hardware-test for testing Daft-Freak@4865029

@Gadgetoid
Copy link
Contributor

Sooo when's your tiny homebrew Pico TV games console coming out? 😆

@Daft-Freak
Copy link
Collaborator Author

Maybe when I find some gamepads that behave. 😆

(VGA/DVI board + OTG adapter, done!)

@Daft-Freak
Copy link
Collaborator Author

Seems more reliable with the new pico-sdk. Also added keyboard support.

@Gadgetoid
Copy link
Contributor

OOoh, that's good news!

@Daft-Freak
Copy link
Collaborator Author

Still the same two devices working, but I can now switch them (+ a keyboard) around repeatedly without the pico crashing/resetting.

Also, hubs and multiplayer fun: https://fosstodon.org/@Daft_Freak/109926331926726469

@Daft-Freak Daft-Freak marked this pull request as ready for review March 3, 2023 22:20
@Daft-Freak
Copy link
Collaborator Author

Slightly modified hardware-test (displays raw button info at the bottom)

@Daft-Freak
Copy link
Collaborator Author

Considering this doesn't affect PicoSystem at all, is there any reason I shouldn't just merge this?

(I've got some USB/multiplayer bits sort-of blocked by this...)

@ahnlak
Copy link
Contributor

ahnlak commented Apr 25, 2023

I can't think of a particularly strong reason not to (although, does that imply that you could in theory plug a keyboard into a PicoSystem?)

@Gadgetoid
Copy link
Contributor

32blit support for PicoSystem is "unofficial" so I'm okay with it implying things we don't actually support,

This feature may benefit certain other Pico-based projects in the pipeline 😆

@Daft-Freak
Copy link
Collaborator Author

Daft-Freak commented Apr 25, 2023

If you change the board config I guess, but you'd lose the buttons... (USB role is a build-time config here, also you only get one input "driver")

EDIT: oh, and the port isn't powered...

@Daft-Freak
Copy link
Collaborator Author

32blit support for PicoSystem is "unofficial" so I'm okay with it implying things we don't actually support,

Hmm, yes someone should stop adding support for random things... 😆 But uh, what does "official support" even mean now?

@Daft-Freak Daft-Freak merged commit 517fa76 into 32blit:master Apr 27, 2023
@Daft-Freak Daft-Freak deleted the pico-hid branch April 27, 2023 12:30
@Daft-Freak
Copy link
Collaborator Author

Now to wait for a "my device doesn't work"/"the buttons are mapped wrong"!

@mikerr
Copy link
Contributor

mikerr commented May 28, 2023

Just got a pimoroni VGAdemo board,
and tried this out with -DPICO_BOARD=vgaboard

Yay, my device DOES work ( Logitech F710) and buttons mapped ok using D mode👌

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

Successfully merging this pull request may close these issues.

4 participants