Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Adding gamepad/joystick support -- testers needed, calling everyone who owns a gamepad...!
Unspecified
exenefevex
Posted: Dec 30 2008, 05:27 PM
Quote Post


Regular
[*][*][*]

Group Icon
Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07

Status: (0d) [--]


Currently the only controller supported is Logitech Dual Action!
If you own a gamepad or controller other than Logitech Dual Action, please run this test program!


FIRST
Attach gamepad/joystick/etc to computer
download/unzip/run the executable
you should see a screen listing the name and capabilities of your controller (if more than one is attached, only the first will be recognized)
press Esc to quit

NEXT
Look for a file named stdout.txt and copy and paste the contents of it into a new file. This file contains a summary of the information which appeared when you ran the test program. (Complete this step even if the screen didn't display correctly!)

NEXT
For each button on your controller, list which SNES input it corresponds to (see below). If your controller's buttons aren't numbered, run the test program again and watch the display; each button will change from 0 to 1 while it is held down.

FINALLY
Post the whole thing as a reply.


The twelve SNES inputs are:
A, B, X, Y, L, R, START, SELECT, Left, Up, Down, Right.
(technically there's a 13th input, but we won't use it here.)

L and R are the shoulder buttons.
SELECT is on the left, START is on the right.
If ABXY were mapped to the dpad, Y would be Left, X would be Up, A would be Right, and B would be Down.

It's fine to have multiple controller buttons correspond to the same SNES input.
It's also okay if you don't provide inputs for Left, Up, Down, or Right (you'll be using axes/hats instead of buttons).
If you don't want a particular button to be used, that's okay too.


Here's an example of what I'm looking for:
QUOTE (xn--e5x)
stdout.txt:
Name: <<<Logitech Dual Action>>>
Axes: 4
Buttons: 12
Balls: 0
Hats: 1

config:
Button 1: Y
Button 2: B
Button 3: A
Button 4: X
Button 5: L
Button 6: R
Button 7: L
Button 8: R
Button 9: SELECT
Button 10: START
Button 11: do not use
Button 12: do not use


This post has been edited by xn--e5x on Jan 1 2009, 09:29 PM

Attached File ( Number of downloads: 4 )
Attached File  controller_test.zip


--------------------
PM
Top
United States
OniLink10
Posted: Dec 30 2008, 05:55 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


More SDL Programmers? Oh boy.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Unspecified
exenefevex
Posted: Dec 30 2008, 05:59 PM
Quote Post


Regular
[*][*][*]

Group Icon
Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07

Status: (0d) [--]


QUOTE (OniLink10 @ Dec 30 2008, 05:55 PM)
More SDL Programmers? Oh boy.

Perhaps it is you who is the "more" programmer!

...also I can't offer any support for your gamepad because you didn't post one. wink.gif


--------------------
PM
Top
United States
OniLink10
Posted: Dec 30 2008, 06:33 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (xn--e5x @ Dec 30 2008, 02:59 PM)
Perhaps it is you who is the "more" programmer!

...also I can't offer any support for your gamepad because you didn't post one.  wink.gif

K, I did an Ubuntu Test to see if the EXE was even able to run under WINE, and unfortunately, I get this error:
QUOTE
SDL could not load an image:

Failed loading libpng12-0.dll: Module not found

SDL couldn't find any game controllers.

If you encounter this message while a controller is plugged in,

please let xn--e5x know what type of controller you're using

so he can add it to the known issues list.

Of course, I didn't plug in any controllers, so that could possibly be a problem. And I did try it with libpng12-0.dll in the same directory as the EXE, and with libpng12-0.dll in the system32. Neither worked.

tl;dr This does NOT work under WINE.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Dec 30 2008, 06:40 PM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


Never mind.

This post has been edited by Hohoo on Dec 30 2008, 06:41 PM


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
United States
OniLink10
Posted: Dec 30 2008, 06:42 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Dec 30 2008, 03:40 PM)
Well, he apparently uses Dir€ctX and it doesn't work under WINE.

He uses SDL, but then again, that uses DirectX under Windows so...

Hey xn-e5x! You using C/C++? If so, I can recompile for GNU/Linux!


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Dec 30 2008, 06:46 PM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


QUOTE (OniLink10 @ Dec 31 2008, 02:42 AM)
He uses SDL, but then again, that uses DirectX under Windows so...

Hey xn-e5x! You using C/C++? If so, I can recompile for GNU/Linux!

I think he's using VB.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
United States
OniLink10
Posted: Dec 30 2008, 06:58 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Dec 30 2008, 03:46 PM)
I think he's using VB.

I seriously doubt there's a SDL Port for VB.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Dec 30 2008, 07:08 PM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


QUOTE (OniLink10 @ Dec 31 2008, 02:58 AM)
I seriously doubt there's a SDL Port for VB.

I obviously need more sleep.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0534 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.74 ]