Teensy: Keyboard vs Joystick Decision

Got an idea for a project? Found a cool project you want to share? Post it here!
User avatar
chiz
Posts: 228
Joined: Thu May 05, 2016 12:05 am
Has thanked: 29 times
Been thanked: 119 times

Re: Teensy: Keyboard vs Joystick Decision

Post by chiz » Sat May 07, 2016 12:49 pm

@Wermy
I see where you're coming from.

Also, one of the reason (and advantage?) using the Teensy as game pad is you get a different and separate button mapping for actual keyboards and another configuration for game pads. I was disoriented at first when I attached a real USB keyboard and EmulationStation was not responding to the arrow keys. That's when I realized bec. I mapped the "keyboard" mapping to the Teensy which uses the alphabetic characters.

I was trying out the Teensy as USB keyboard initially with Terra Cresta in MAME, and this is where I noticed I can't move diagonally. I will re-flash the Teensy with USB keyboard and will re-visit that game.

@Fleder
[off-topic]
I responded to your USB game pad thread. And again, I'm not totally ditching the idea but will probably go the Teensy route at the moment so I can complete the project but I still consider the USB game pad implementation for a later build.
[/off-topic]

User avatar
Popcorn
Trailblazer
Trailblazer
Posts: 354
Joined: Thu May 05, 2016 12:58 am
Location: Berlin
Has thanked: 29 times
Been thanked: 71 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Popcorn » Sat May 07, 2016 2:47 pm

One thing I've noticed is that C64 emulation is impossible without a keyboard. I think this is going to be a deeper question of what emulators we can and can't support using a keyboard vs gamepad. Hmmm

User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Robots86 » Sat May 07, 2016 3:44 pm

i think dos games will be the same

CandyManCriminal
Posts: 39
Joined: Thu May 05, 2016 8:54 am
Has thanked: 1 time
Been thanked: 1 time

Re: Teensy: Keyboard vs Joystick Decision

Post by CandyManCriminal » Sat May 07, 2016 9:52 pm

Frame that board once you replace, it's art

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Fleder » Thu May 12, 2016 12:31 am

CandyManCriminal wrote:Frame that board once you replace, it's art
Or better, sell it to me :D

User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Robots86 » Wed May 18, 2016 5:49 am

Anybody know how i go about programing the teensy as a gamepad?

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Fleder » Wed May 18, 2016 5:51 am

Robots86 wrote:Anybody know how i go about programing the teensy as a gamepad?
chiz wrote:Anyways, regarding the USB game pad code... It's readily available and can be opened in the Arduino IDE under the menu, File -> Examples -> Teensy -> USB_Joystick -> Buttons

Once opened, flash the Teensy without any modifications and your game pad should be immediately detected under Windows.

User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Robots86 » Wed May 18, 2016 5:57 am

Thanks for the reply. When i was looking earlier the option i could see was for USB keyboard/joystick or something like that. But i couldnt figure out how to access the joystick code. Will have another look later.

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Fleder » Wed May 18, 2016 6:54 am

Robots86 wrote:Thanks for the reply. When i was looking earlier the option i could see was for USB keyboard/joystick or something like that. But i couldnt figure out how to access the joystick code. Will have another look later.
Hope that helps: https://www.pjrc.com/teensy/td_joystick.html
Or this: https://learn.adafruit.com/usb-snes-gam ... the-teensy

User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

Re: Teensy: Keyboard vs Joystick Decision

Post by Robots86 » Wed May 18, 2016 7:57 am

Thanks for the links having a read over it now :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest