Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
110 user(s) are online (60 user(s) are browsing Forums)

Members: 1
Guests: 109

samo79, more...

Headlines

 
  Register To Post  

Reading USB joystick in C / C++
Just popping in
Just popping in


See User information
Does anybody know any C routines for reading a USB joytick?

Go to top
Re: Reading USB joystick in C / C++
Not too shy to talk
Not too shy to talk


See User information
Someone should start a USB programming school for Amigans. I would love to be a student on that.

(I have become interested in implementing some drivers for USB devices. I did some USB driver stuff at work and got a small itch to do Amiga flavours ...)


UPDATE:
About joystick usage:
http://www.os4depot.net/index.php?fun ... e=driver/input/libhjw.lha
(does have some example code...)

Semi-relevant, copy of some old thread @ amigacoding:
http://www.amigacoding.de/index.php?topic=217.0

(and you can also ask more on "AOS4 only" coders forum: http://www.os4coding.net/forums/gaming )


Edited by KimmoK on 2014/5/21 8:47:33
Edited by KimmoK on 2014/5/21 8:52:48
Edited by KimmoK on 2014/5/21 8:58:51
- Kimmo
--------------------------PowerPC-Advantage------------------------
"PowerPC Operating Systems can use a microkernel architecture with all it�s advantages yet without the cost of slow context switches." - N. Blachford
Go to top
Re: Reading USB joystick in C / C++
Home away from home
Home away from home


See User information
@GarbageOut

AmigaInput is the API that you want to use. I don't know of any simple example code though. You might be able to find an example of sorts by looking through the SDL port.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Reading USB joystick in C / C++
Not too shy to talk
Not too shy to talk


See User information
or use the lib from Huno http://www.clubevolution4.com/HunoPortSDL/index1.php

Library HJW 2.0.0 "All Systems"
static library to quickly and easily add support for the joystick in a source code of a game based on the library "Simple DirectMedia Layer". This one includes a simple configuration to adapt to all beginners or experts, supports HAT'S / AXIS and all the buttons

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project