Re: NEW: games/sdl-jstest

2018-01-05 Thread Thomas Frohwein
Attached the file updated based on bcallah@'s feedback.

Yes, sdl2-jstest is supposed to fail without the gamecontroller API component 
of the sdl2 update that I sent. sdl-jstest is supposed to work though. Based on 
reports by awolk@ it may only look at up to uhid2, so make sure the device 
attaches to 0, 1, or 2.

sdl-jstest.tgz
Description: Binary data


Re: NEW: games/sdl-jstest

2018-01-05 Thread Adam Wolk
On Fri, Jan 05, 2018 at 06:41:35PM -0500, Brian Callahan wrote:
> 
> On 01/05/18 17:49, Thomas Frohwein wrote:
> > Attached is a port sdl-jstest. sdl-jstest is a simple program to find out 
> > how many joysticks are detected by SDL and SDL2. It can list devices 
> > detected by SDL1/SDL2 joystick or gamecontroller API. It also has a flag to 
> > display events sent by the buttons and axes.
> > 
> > The primary purpose is for testing and troubleshooting 
> > joystick/gamecontroller devices. Helpful in working on SDL2's 
> > gamecontroller API.
> > 
> 
> This is ok for me, with the caveat that the V variable be merged into
> DISTNAME (since it's only used there). And maybe eliminate the verbosity of
> the license marker comment, GPLv2+ is good enough.
> 
> I'm also guessing this needs the SDL2-2.0.7 update? Otherwise, sdl2-jstest
> complains that SDL2 was built without force feedback.
> 
> ~Brian
> 

This is also OK awolk@

with same caveat regarding SDL2 and for anyone testing I found a quirk.

I have a zalman gaming mouse and for some reason this test app detected
it as 3 gaming pads... preventing the PS4 dual shock pad from being
discovered by this utility when plugged in.

After unplugging the mouse, and plugging the pad in - it's detected correctly
and the test & events mode works as expected.

So, unplug your fancy USB devices before testing a gaming pad/joystick.

Regards,
Adam



Re: NEW: games/sdl-jstest

2018-01-05 Thread Brian Callahan


On 01/05/18 17:49, Thomas Frohwein wrote:

Attached is a port sdl-jstest. sdl-jstest is a simple program to find out how 
many joysticks are detected by SDL and SDL2. It can list devices detected by 
SDL1/SDL2 joystick or gamecontroller API. It also has a flag to display events 
sent by the buttons and axes.

The primary purpose is for testing and troubleshooting joystick/gamecontroller 
devices. Helpful in working on SDL2's gamecontroller API.



This is ok for me, with the caveat that the V variable be merged into 
DISTNAME (since it's only used there). And maybe eliminate the verbosity 
of the license marker comment, GPLv2+ is good enough.


I'm also guessing this needs the SDL2-2.0.7 update? Otherwise, 
sdl2-jstest complains that SDL2 was built without force feedback.


~Brian