| |
Adding gamepad/joystick support -- testers needed, calling everyone who owns a gamepad...!
exenefevex |
|
Regular
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Minigame Comp Winner Badge (1) [*]](https://archive.mfgg.net/html/badges/mcg1.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
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 )
controller_test.zip
--------------------
|
|
|
OniLink10 |
|

C++ Programmer, Unofficial Physicist, and Unofficial Chemist
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| 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.  |
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! |
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0534 ] [ 14 queries used ] [ GZIP Enabled ] [ Server Load: 0.74 ]
| |