MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

uRebelScum
Regular
Reged: 09/21/03
Posts: 538
Loc: California
Send PM
Re: Food Fight Rev 3 looking or walking to the right when not touching joystick
11/04/08 09:45 PM


> ...But I'm sure he'll be replying soon.

Confirmed. Just a more details:

"Over-equal weight calibrate" is a play on words, in the line of "Everyone's equal, just some are more equal than overs." The OP tested the game's calibration by moving mostly left and up/down with a visible effect. And I've had other games/apps where the fix for off calibration was counter-intuitive: move the stick/mouse toward the direction it was off (example, starwars in mame).

"720" was a refferance to the game 720 (skate or die), and its controller that looked like a joystick that could only be moved in a circle along the edge. Moving the analog joystick like this three or four times helps starwars calibrate really quickly.


I really suggest looking at starwars, if only to visibly see a game autocalibrate. Don't worry about the driver or anything, just start SW and without moving stick, start a game. Note where the crosshairs start on the select level screen. Do a quick 360 with the stick and let go. Note how the crosshairs have moved more toward the center? Repeat a few times (don't worry about playing, not like you're losing money). Try exiting/restarting SW, and moving the stick just on the left or right half and how that effects the autocalibration. Considering SW and FF are both from Atari and released one year apart, they might share some calibration code. And SW you can see exactly how the "center" moves, while FF you can see hints on what's going on. Note that it seems like SW does NOT use NVRAM to store autocalibration info, so all you have to do to "start over" with calibration is exit and restart SW, or even just press F3 (emulated reboot).

However, adding playback and savestate would be great for this and other debugging.

> Are you refering to these lines:
>
> 2714: /* analog keyboard delta */
> ...
> If so, then why "analog keyboard delta" in the comment at line 2714?
> I have a digital joystick, so why is analog keyboard involved?

There's some history here. Mame used to treat keyboard and joystick inputs differently, and this option used to be called IIRC, -keyspeed & -keydelta. However, since I've been following mame (0.37u13), this delta/speed setting effected both keyboard and digital joysticks inputs. So semi-recently the UI name (what the user sees in the menu) was changed to a more accurate "digital speed", but the internal names didn't. (Maybe they should for clearer code.)

So be assured that this effects the digital to analog simulation of all digital devices, be it keyboard or digital joystick, on all games' analog inputs. And, as I said in prior post, its related autocenterspeed does effect analog joysticks too, when an analog joystick axis centers (or goes into the deadzone).

BTW, for some reason I thought you were mostly using an analog joystick? (and doing side testing with a digital stick?)

Anyway, yes that's the code I was referring to. SDL derivative has very few changes from official vanilla mame, all in the OSD (OS Dependent) code AFAIK. If you want quick view of a single source file, both mameDev and MAWS have online access to the up to date code. (MameDev's is color coded for easier read, IMO.)


Robin
www.urebelscum.speedhost.com/ or
www.angelfire.com/retro/u_rebelscum or
rain.prohosting.com/urebel







Entire thread
Subject Posted by Posted on
* Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr 10/31/08 06:12 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/01/08 02:51 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/01/08 08:06 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  10/31/08 09:16 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/01/08 09:00 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 01:45 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/04/08 07:10 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick StilettoAdministrator  11/04/08 07:51 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 09:45 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/04/08 08:39 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 10:13 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/04/08 10:59 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/08/08 02:24 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/08/08 08:51 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/03/08 11:18 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/04/08 07:14 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Anonymous  11/08/08 11:53 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/10/08 05:05 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/27/08 03:24 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/27/08 09:44 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 23 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 7427