23 November 2015, 19:16 | #1 |
Posts: n/a
|
Problem with Tomahawk Joystick
Hello, my name is Ilais and i am from Greece. I have a Tomahawk Joystick and also a usb game port adapter. When i connect to my pc (windows and linux) my joysticks works fine! But when i start the fs-uae the "right" and the "down" dows not work! I test it also to the windows and i have the same problem.
I see that it is from the emulator problem because the linux and windows on the configuration work fine. Any help please? Sorry for my bad English. |
23 November 2015, 19:55 | #2 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
|
23 November 2015, 20:19 | #3 |
Posts: n/a
|
No, when i try it to windows/linux tester the joystick works fine. When i open the fs-uae then the right/down does not work.
|
23 November 2015, 20:26 | #4 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
What adapter do you have?
|
23 November 2015, 20:29 | #5 |
Zone Friend
Join Date: Jun 2006
Location: Gargore
Age: 43
Posts: 17,789
|
This adapter should have switches.
|
23 November 2015, 21:16 | #6 |
Posts: n/a
|
It is the Super Joy Box7 adapter. I try the win-uae on my windows and works fine. So the problem is at the fs-uae. The switches is ok. I am sure about that.
|
23 November 2015, 21:21 | #7 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Try to configure the joystick in FS-UAE Launcher settings (map the "fire button" as south button, and directional movement to d-pad).
|
23 November 2015, 21:28 | #8 |
Posts: n/a
|
Where i can "map" the fire button? Where in setting?
|
23 November 2015, 21:30 | #9 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
On "Joystick page" in FS-UAE Launcher settings, double-click on the list entry for your Tomohawk joystick (well, the entry will identify the adapter).
|
23 November 2015, 21:49 | #10 |
Posts: n/a
|
i found it... i do everything you say.
The problem still here! When i press the south button/up/left from the configuration and then from my joystick it is ok. When i press the down/right it says from the configuration "use joystick" i do my joystick down but nothing! The configuration file with the controller is: [fs-uae-controller] name = WiseGroup.,Ltd Gameport to USB Controller platform = linux [device] make = model = type = gamepad [sdl] guid = 03000000250900003210000000010000 buttons = 8 hats = 1 axes = 4 balls = 0 [default] include = universal_gamepad axis_0_neg = dpad_left axis_1_neg = dpad_up button_0 = south_button |
23 November 2015, 21:56 | #11 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
And what software does it work perfectly with on Linux?
Have you tried the console program jstest? What happens if you run e.g.: Code:
jstest /dev/input/js0 |
23 November 2015, 22:06 | #12 |
Posts: n/a
|
I have tried it and works fine. No problem with up/down/left/right/fire
|
23 November 2015, 22:09 | #13 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
I still want to know what happens. What axes/button changes you do see in jstest when pressing right, for example.
And again, have you tried other software/games on Linux? |
23 November 2015, 22:30 | #14 |
Posts: n/a
|
I do not know other softwate for Ubuntu. I try winuae with wine and work fine the Joystick!
When i press right on jstest it gives me: Axes: 0: 31721 1: 712 2: 128 3: 128 4: 0 5: 0 Buttons: 0f Axes: 0: 348 1: 712 2: 128 3: 128 4: 0 5: 0 Buttons: 0f |
28 November 2015, 22:15 | #15 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Try to run fs-uae-device-helper manually:
Code:
fs-uae-device-helper --events Code:
{"type": "joy-axis-motion", "device": 0, "axis": 1, "state": 32767} |
30 November 2015, 15:03 | #16 | |
Posts: n/a
|
Quote:
When i press the command i take this: liakos@liakos:~$ fs-uae-device-helper --events # Printing events # listing keyboards {"type": "keyboard-device-added", "device": 0, "name": "Keyboard"} # listing mice {"type": "mouse-device-added", "device": 0, "name": "Mouse"} # new joystick device added {"type": "joy-device-added", "device": 0, "name": "WISEGROUP.,LTD GAMEPORT TO USB CONTROLLER", "buttons": 8, "axes": 4, "hats": 1, "balls": 0} {"type": "joy-axis-motion", "device": 0, "axis": 0, "state": -6218} {"type": "joy-axis-motion", "device": 0, "axis": 1, "state": -6890} When i press up i take: {"type": "joy-axis-motion", "device": 0, "axis": 1, "state": -32768} {"type": "joy-axis-motion", "device": 0, "axis": 1, "state": -6218} When i press down i take: {"type": "joy-axis-motion", "device": 0, "axis": 1, "state": 13275} {"type": "joy-axis-motion", "device": 0, "axis": 1, "state": -6218} When i press right i take: {"type": "joy-axis-motion", "device": 0, "axis": 0, "state": 14619} {"type": "joy-axis-motion", "device": 0, "axis": 0, "state": -5882} When i press left i take: {"type": "joy-axis-motion", "device": 0, "axis": 0, "state": -32768} {"type": "joy-axis-motion", "device": 0, "axis": 0, "state": -5882} When i press button (only 1 button it has) i take: {"type": "joy-button-down", "device": 0, "button": 0, "state": 1} {"type": "joy-button-up", "device": 0, "button": 0, "state": 0} Any help? |
|
02 December 2015, 18:52 | #17 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Yes, I think we have found the problem here -It has to do with the state values for the axes. Joystick axis values are (in general) designed for analog joystisks, and in SDL the values range from -32768 to 32767, where 0 is neutral (Analogue joystisks will of course seldom be exactly 0 in the rest position).
You'd expect digital adapters to report -32768, 0 and 32767 for left, neutral and right, respectively. Also, since FS-UAE is designed to work with analogue sticks as well, FS-UAE accepts anything < -20000 as negative, anything between -20000 and 20000 inclusive as neutral, and > 20000 as positive. The problem is that for your adapter, right and down results in 14619 and 13275 respectively, which FS-UAE interprets as neutral... -so an option to change the threshold would fix this. Alternatively, perhaps the joystick can be calibrated in the OS to fix the range? Last edited by FrodeSolheim; 02 December 2015 at 19:00. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wanted: Aneroussis Control Tomahawk or Pacman Joystick | wolflik3me | MarketPlace | 0 | 21 October 2015 03:03 |
Want to buy a Tomahawk joystick or trade with an tac 2 joystick black box&manual | astraldimension | MarketPlace | 5 | 19 March 2015 10:55 |
Amiga 600 joystick problem | entireweb | New to Emulation or Amiga scene | 3 | 05 October 2011 17:27 |
2 joystick problem | defrb | support.WinUAE | 5 | 20 October 2009 13:12 |
Mouse and Joystick problem | mai | support.Hardware | 8 | 17 August 2009 21:00 |
|
|