israelg Posted July 17, 2002 Share Posted July 17, 2002 Does anyone else found the Z26 joystick sensitivity is lower than the keyboard sensitivity ?, Z26 is the best atari 2600 emulator but in some games I prefer using pcae or pcaewin just because it has a better joystick input response, can this be fixed or be controlled with a new command line ?, try playing games like pitfall or space invaders and u will find that u can't move in small steps... it seems that z26 is polling the joystick in longer interavals than othre emulations, that decrease the sensitivity of the joystick, it should be a very easy fix this problem... 10X Israel Geron T. Quote Link to comment Share on other sites More sharing options...
Eckhard Stolberg Posted July 17, 2002 Share Posted July 17, 2002 For reading a PC joystick you need to have a counter loop that waits for the joystick input bit to flip. Operating systems like Windows can interrupt your counter loop for their own system routines which will result in wrong results for your counter value. To work around this problem we always keep an avarage counter value from the last four reads. This is what makes the joystick control so unprecise in z26. When I remove the the code for generating the average value, the joystick response gets a bit jerky. Unfortunately I currently don't have the time to write a completely new joystick handler routine for z26. But if anyone else wants to give it a try, you can find the code in question in the file JOY.ASM in the source code archive. Ciao, Eckhard Stolberg Quote Link to comment Share on other sites More sharing options...
israelg Posted July 18, 2002 Author Share Posted July 18, 2002 can you add a command line to set the number of reads, for the avearage. instead of set it hard coded to 4 ? with this new command line I can set it to lower number than 4 and play in pure dos with a more sensitive joystick... this will save u from writing it all new from scratch and wont take lots of time... thanks Israel Geron T. Quote Link to comment Share on other sites More sharing options...
Eckhard Stolberg Posted July 18, 2002 Share Posted July 18, 2002 Unfortunately it's not that easy. And honestly I'm not much of a fan of such quick hacks, especially if they waste scarce resources like command line switches in z26. I'm afraid I can't help you right now. We'll have to do some major changes to z26 to be able to expand it any further. Maybe during this process we can find some time to implement better joystick support. But that won't be finished anytime soon. Sorry, Eckhard Stolberg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.