Four-Axis Joystick[DelphiX? Maybe asm]

Please discuss general Delphi programming topics here.

Four-Axis Joystick[DelphiX? Maybe asm]

Postby Piterus » July 22nd, 2008, 7:10 pm

So, I must write a simple application, which log pressed keys and moved axis to file. Gameport specification secure 4 axis joy with four buttons. I have used the TDXInput for connection with 3 axis(x, y, z) and four buttons. But I can find method for logging fourth axis(R?). I've found only asm sample, but I can understand it: http://pastebin.com/f62a1345a
Unfortunetly, WinXP is blocking direct access to port, so I have to use smth like NTPort... But this is not a problem.
Probing connection with gameport port($201) sample from NTPort causes only $FFFF value, independently of pressed keys/moved axis..

Eh... I don't know what to do...
PS. It must be gameport, because this is not a joy, but an electronical mechanism for house-guard... I know, with destructing USB pad with 8 keys will be less work but... ambitions ;)
And sorry for my english, I know, it isn't good, but I learn it only 2hr/week in school...

Best regards from Poland:) I'll be waiting for an answer... I hope you can help me :)
Piterus
Member
Member
 
Posts: 1
Joined: July 22nd, 2008, 6:55 pm

Postby Kambiz » July 24th, 2008, 9:20 pm

You have had good English teachers in school. ;)

You can find Win32 Joystick API in MMSystem unit. Follow the following link for the documentation.
http://msdn.microsoft.com/en-us/library/ms709377.aspx
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 21 guests

cron