Advertisement

libjsw 1.5.x API Tutorial

Started by February 12, 2002 11:45 PM
4 comments, last by LearFox 22 years, 11 months ago
The new tutorial for the joystick wrapper library (libjsw) 1.5.x series is now online. http://wolfpack.twu.net/libjsw/tutorial.html
Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
Thanks a bunch for the link Learfox. I didn''t know about the wolfpack site but it is very interesting.I''m very interested with interfacing Gamepads with Linux because.. I have a problem
I purchased a adapter named PSXto USB adapter that allows to connect a Sony Playstation gamepad to the computer through one of the USB port.IMHO the Sony gamepad is the BEST period.
I installed a PSX emulator named EPSXE ( great work by the way ) and the gamepad works fine with it.
Then a few weeks ago, the Linux version of that emu was released and of course I gave it a try. The graphics, sound and CDROM plugins have some bugs but are usable, but the gamepad plugins are crappy and don''t work at all . By the way, all the plugins for EPSXE are the same as the plugins for the PCSX Linux emu.
What puzzles me is that when I try the Sony gamepad with the command jstest /dev/js0 it works and the gamepad is detected. That command is active when the joystick1.2-15-9RPM is installed.
I made another test and wrote a small program using the SDL methods and it works too, so I''m really stucked.
If you know the guys at Wolfpack maybe you could suggest them to supply a good gamepad plugin for the EPSXE emu at www.epsxe.com
Anyway, next weekend I,ll have a try at compiling the libjsw.
Advertisement
Hi, I am not sure if you are the same person who
inquired about the the Sony Game pads with me
a few weeks ago. The answer is yes, Linux does support
USB, and the Linux joystick driver does recognize most game
pads and thus libjsw can work with the game pad.

I do have reports however, that some extended axises and buttons are behaving oddly at the
Linux joystick driver level.
Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
Looks good. (*nods hello* Long time no c learfox. Mmm...dont spose you guys could put the man pages for jsw up on the webpage?

If its a hassel dont bother. I''m often out on machines which I get to play with, but they dont put man on usually, which kinda sucks. I''ll just dump them up on my own webpage if its a pain, but I guess other people might be interested too, so hey. If its cool, drop a link to them. Otherwise... well. eh, all good. Stay well. Catcha!
Hi Shadow, goodness, I haven''t seen you in ages! Write more!

M''kay, in response to yer question; this topic is actually about the jsw tutorial (not the manual pages). There is an introduction to jsw manual page (see "man jsintro") that has an example. However I recommend that you read the tutorial and only use the manual pages as reference.

Remember, the new jsw api does all the new fancy 1.5.0 axis correction and related features for you. So there''s very little thinking needed other than to follow the tutorial.
Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
lol. I hope the man pages are at least correct: that''s all I really wanted them for; just an API reference (not all function arguments are totally obvious...although jsw.h does explain a fair amount).

*humms* yay. At least I have an excuse to get a new joystick now; so I can play with this. Sounds fun. =D

Ack. Should have been in class 10 minutes ago. Gtg. Hey, if you''re bored, drop me a line (still shadowmint@mailcity.com). What r u up these days? I still check out XSWS now and then. Looking very nice. Too bad I''m stuck behind a firewall...

This topic is closed to new replies.

Advertisement