Pages: [1]   Go Down
Author Topic: Help combining RawHID and Joystick on Teensy 2.0 using teensyduino  (Read 993 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, first off I'm completely new here so I'm sorry if this is the wrong place, it seemed like the most appropriate place to ask this question.

I've got a Teensy 2.0 which I have been playing around with using teensyduino+Arduino 1.0.1 .

What I am ultimately wanting to achieve is a game controller which can receive outputs from my own program on the pc through USB (similar to the Flightsim example but with my own program in place of Flightsim X). I have managed to interface with my program using the RawHID example included in teensyduino but in order to use the raw data as a game controller I imagine I'd have to write windows drivers etc which is beyond my capabilities. What I'd rather be able to do is use functions from both the RawHID library and Joystick library (not sure if library is the right word but it's a similar concept).
Would I have to:

1. Write an entirely new library from scratch? (beyond my capabilities for now but I might be able to just about manage using the sources from RawHID and Joystick)
2. Program purely in C using WinAVR? (I guess I should learn how to do this eventually anyway but I don't want to jump right in with trying to use USB)
3. Have somebody tell me there's a nice easy way to do it? (definitely my preferred option  smiley-razz )

Thanks in advance.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmm...since I got no response here, does anybody know of a more teensy specific forum I could try? Or is here the best place to ask teensy related questions?
Thanks
Phil
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey i do not have a straight answer for your questions,
But I would really dig a corner on this forum dedicated to teensy,
I got a couple questions about the usbMidi library!

just saying that a teensy forum would be awesome!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah it sure would.

If anybody is interested I managed to make a new USB type by combining the RawHID source files with parts of the USB joystick source files and editing some of the descriptors. Then had to edit some of the Arduino source files to get it to recognise my new USB type but it all worked in the end so I'm happy.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
just saying that a teensy forum would be awesome!
No point telling us. Tell the Teensy manufacturers.
Logged

Pages: [1]   Go Up
Jump to: