You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some code was sent my way which will be of benefit to both MAME2003 and MAME2003+
although im retired from working on this core there is no point in letting it go to waste
if you or anyone else decide to use the code credits goto BritneysPAIRS...........
Attached is the change for MAME2003+ to support absolute light gun positioning. Note the mame source was from a few months ago and may have changed since then a tiny bit. We needed this to be fixed and have supplied the fixes for this (same for when the xbox was broken some years ago and needed to be fixed).
Line47-48: added light gun position array, it used to only store mouse positions
Line1207-1208: added input callback inside retro_run(), this is for our code to return lightgun position
Line1209-1210: converts position from callback to mame2003 (light gun returns absolute positions from 0-4095, mame uses -128~128 -> converts absolute to mame using (x-2028)/16)
Line1919-1921: osd_lightgun_read() mame uses this to read the lightgun positions, this used to be an empty function with no input or return values
Missing parts in the original mame2003 code:
didn't store absolute positions for lightguns, just relative positions for mice
didn't have input callback to get light gun device
had to convert light gun coordinate to mame's
missing code inside osd_lightgun_read()
Regards!!
The text was updated successfully, but these errors were encountered:
Hi arcadez is it possible to change the links to this as there is an error in the first lot. This patch can just directly insert now for testing as they will like
I have tested this on an legends arcade so its best to use this new link please and I will be looking at steering wheel etc soon to see if I can get these working properly
Hi there @twinaphex
Some code was sent my way which will be of benefit to both MAME2003 and MAME2003+
although im retired from working on this core there is no point in letting it go to waste
if you or anyone else decide to use the code credits goto BritneysPAIRS...........
Attached is the change for MAME2003+ to support absolute light gun positioning. Note the mame source was from a few months ago and may have changed since then a tiny bit. We needed this to be fixed and have supplied the fixes for this (same for when the xbox was broken some years ago and needed to be fixed).
http://s000.tinyupload.com/index.php?file_id=98464986887089762673
Regards Ken
Line47-48: added light gun position array, it used to only store mouse positions
Line1207-1208: added input callback inside retro_run(), this is for our code to return lightgun position
Line1209-1210: converts position from callback to mame2003 (light gun returns absolute positions from 0-4095, mame uses -128~128 -> converts absolute to mame using (x-2028)/16)
Line1919-1921: osd_lightgun_read() mame uses this to read the lightgun positions, this used to be an empty function with no input or return values
Missing parts in the original mame2003 code:
Regards!!
The text was updated successfully, but these errors were encountered: