English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 23 November 2015, 19:16   #1
h_tsopelas
 
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.
 
Old 23 November 2015, 19:55   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by h_tsopelas View Post
I test it also to the windows and i have the same problem.
Do you mean that you also have the right/down problems when you use the built-in joystick tester in Windows?

It does not sound like an FS-UAE bug...
FrodeSolheim is offline  
Old 23 November 2015, 20:19   #3
h_tsopelas
 
Posts: n/a
Quote:
Originally Posted by FrodeSolheim View Post
Do you mean that you also have the right/down problems when you use the built-in joystick tester in Windows?

It does not sound like an FS-UAE bug...
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.
 
Old 23 November 2015, 20:26   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
What adapter do you have?
FrodeSolheim is offline  
Old 23 November 2015, 20:29   #5
s2325
Zone Friend
 
s2325's Avatar
 
Join Date: Jun 2006
Location: Gargore
Age: 43
Posts: 17,789
This adapter should have switches.
s2325 is offline  
Old 23 November 2015, 21:16   #6
h_tsopelas
 
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.
 
Old 23 November 2015, 21:21   #7
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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).
FrodeSolheim is offline  
Old 23 November 2015, 21:28   #8
h_tsopelas
 
Posts: n/a
Where i can "map" the fire button? Where in setting?
 
Old 23 November 2015, 21:30   #9
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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).
FrodeSolheim is offline  
Old 23 November 2015, 21:49   #10
h_tsopelas
 
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
 
Old 23 November 2015, 21:56   #11
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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
and press down or right?
FrodeSolheim is offline  
Old 23 November 2015, 22:06   #12
h_tsopelas
 
Posts: n/a
I have tried it and works fine. No problem with up/down/left/right/fire
 
Old 23 November 2015, 22:09   #13
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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?
FrodeSolheim is offline  
Old 23 November 2015, 22:30   #14
h_tsopelas
 
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
 
Old 28 November 2015, 22:15   #15
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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
You should then get output like this:
Code:
{"type": "joy-axis-motion", "device": 0, "axis": 1, "state": 32767}
One line per state change. Does that seem to work? Do you get state changes when pressing right and/or down?
FrodeSolheim is offline  
Old 30 November 2015, 15:03   #16
h_tsopelas
 
Posts: n/a
Quote:
Originally Posted by FrodeSolheim View Post
Try to run fs-uae-device-helper manually:
Code:
fs-uae-device-helper --events
You should then get output like this:
Code:
{"type": "joy-axis-motion", "device": 0, "axis": 1, "state": 32767}
One line per state change. Does that seem to work? Do you get state changes when pressing right and/or down?

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?
 
Old 02 December 2015, 18:52   #17
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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.
FrodeSolheim is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:56.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09367 seconds with 13 queries