English Amiga Board


Go Back   English Amiga Board > Support > support.Games

 
 
Thread Tools
Old 15 August 2024, 18:45   #1
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,357
TFX with PC analog joystick

Anyone had much luck getting TFX to work with an analog joystick? I've just bought a Raptor Mach 2 in the hope of getting it working.

I've run the analog joystick configuration and you can see my settings for the joystick in the screenshot. The problem is it doesn't seem to save the numbers to the file attached.

In the game it flys erratically and rarely straight tending to pull to the left sharply and randomly.

Maybe I can hardcode the file with my joysticks values if I knew which ones to change.

Anyone else had much luck with this?
Attached Thumbnails
Click image for larger version

Name:	047.png
Views:	29
Size:	20.0 KB
ID:	82915  
Attached Files
File Type: zip TFX.zip (290 Bytes, 9 views)
Steve is offline  
Old 16 August 2024, 17:20   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,303
Looks like format is ?,XCenter,XRange,YCenter,YRange,....

That seems to match what's in your file on the face of it. I don't know much about analogue joysticks though, so can't really help much.

Code that reads it is like this (if anyone can e.g. see that potgo thing is wrong). Called in vblank int routine:
Code:
	MOVE.W	POT1DAT,_Anal1X		;3f974: 33f900dff014000a15c0
	MOVE.W	#$0001,POTGO		;3f97e: 33fc000100dff034
	MOVE.B	_Anal1X,D0		;3f986: 1039000a15c0
	LSL.W	#8,D0			;3f98c: e148
	MOVE.W	D0,_joystick_x_position	;3f98e: 33c0000a15ca
	MOVE.B	_Anal1Y,D0		;3f994: 1039000a15c1
	LSL.W	#8,D0			;3f99a: e148
	MOVE.W	D0,_joystick_y_position	;3f99c: 33c0000a15d4
paraj 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
analog joystick on amiga ? demether support.Games 19 26 May 2024 14:29
Analog PC joystick to Amiga? Chain Hardware mods 3 20 February 2009 18:32
Analog joystick scaling rmzalbar support.WinUAE 6 17 November 2007 23:37
Analog joystick frikilokooo MarketPlace 5 13 October 2007 12:22
Using a PC analog Joystick on Amiga TenakaUK support.Hardware 0 09 June 2004 17:16

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 16:15.

Top

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