MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

CannonFodderSE
MAME Fan
Reged: 10/22/13
Posts: 4
Send PM


Unable to remove joystick deadzone
#316279 - 10/23/13 02:10 AM


Greetings,
Have problems with the deadzone in Mame using Aimtrak light gun configured to joystick mode. Tried Mame 1.50 with several version of Linux (Kubuntu 12.10, 13.04, 13.10 in 64 and 32 bit and Fedora 16 64 bit). Tried it on three different computers (my laptop, desktop and media center PC). Also tried it it with several ROMs (Eggventure, Carnevil, Time Crisis and more). Have the same problem in all situations. Get close to the center line horizontally or vertically and it snaps to it until I move further away. The deadzone is not present when calibrating the joystick via the OS. The only part I don't know how to check is the SDL layer. Don't know if there are separate parameters for it or not.

Below is my mame.ini from "/etc/mame". Any assistance would be greatly appreciated. If anyone see anything that could be tweaked for video and audio performance feel free to correct me there, too.

One other question, can the mouse function be setup for absolute mode vice relative? If so, I can swithch the gun to mouse mode.

Thanks,
CannonFodderSE

#
# CORE CONFIGURATION OPTIONS
#
readconfig 1
writeconfig 0

#
# CORE SEARCH PATH OPTIONS
#
rompath
$HOME/mame/roms;/usr/local/share/games/mame/roms;/usr/share/games/mame/roms;~/mame/roms
hashpath /usr/share/games/mame/hash
samplepath
$HOME/mame/samples;/usr/local/share/games/mame/samples;/usr/share/games/mame/samples
artpath
$HOME/mame/artwork;/usr/local/share/games/mame/artwork;/usr/share/games/mame/artwork
ctrlrpath /etc/mame/ctrlr
inipath $HOME/.mame;/etc/mame
fontpath .
cheatpath
$HOME/mame/cheat;/usr/local/share/games/mame/cheat;/usr/share/games/mame/cheat
crosshairpath
$HOME/mame/crosshair;/usr/local/share/games/mame/crosshair;/usr/share/games/mame/crosshair

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory cfg
nvram_directory nvram
memcard_directory memcard
input_directory inp
state_directory sta
snapshot_directory snap
diff_directory diff
comment_directory comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state
autosave 0
playback
record
mngwrite
aviwrite
wavwrite
snapname %g/%i
snapsize auto
snapview internal
statename %g
burnin 0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip 0
frameskip 0
seconds_to_run 0
throttle 1
sleep 1
speed 1.0
refreshspeed 0

#
# CORE ROTATION OPTIONS
#
rotate 1
ror 0
rol 0
autoror 0
autorol 0
flipx 0
flipy 0

#
# CORE ARTWORK OPTIONS
#
artwork_crop 0
use_backdrops 1
use_overlays 1
use_bezels 1
use_cpanels 1
use_marquees 1

#
# CORE SCREEN OPTIONS
#
brightness 1.0
contrast 1.0
gamma 1.0
pause_brightness 0.65
effect none

#
# CORE VECTOR OPTIONS
#
antialias 1
beam 1.0
flicker 0

#
# CORE SOUND OPTIONS
#
sound 1
samplerate 48000
samples 1
volume 0

#
# CORE INPUT OPTIONS
#
coin_lockout 1
ctrlr
mouse 0
joystick 1
lightgun 0
dual_lightgun 0
multikeyboard 0
multimouse 0
steadykey 0
ui_active 0
offscreen_reload 0
joystick_map auto
joystick_deadzone 0
joystick_saturation 1
natural 0
joystick_contradictory 0
coin_impulse 0

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device keyboard
adstick_device keyboard
pedal_device keyboard
dial_device keyboard
trackball_device keyboard
lightgun_device joystick
positional_device keyboard
mouse_device mouse

#
# CORE DEBUGGING OPTIONS
#
log 0
verbose 0
update_in_pause 0
debug 0
debugscript
debug_internal 0

#
# CORE MISC OPTIONS
#
bios
cheat 0
skip_gameinfo 0
uifont default
ramsize
confirm_quit 0
ui_mouse 0
autoboot_command
autoboot_delay 2
autoboot_script

#
# DEBUGGING OPTIONS
#
oslog 1
watchdog 1

#
# PERFORMANCE OPTIONS
#
multithreading 1
numprocessors auto
sdlvideofps 1
bench 0

#
# VIDEO OPTIONS
#
video opengl16
numscreens 1
window 0
maximize 1
keepaspect 1
unevenstretch 1
centerh 1
centerv 1
waitvsync 1
syncrefresh 1
scalemode none

#
# OpenGL-SPECIFIC OPTIONS
#
filter 1
prescale 1
gl_forcepow2texture 0
gl_notexturerect 1
gl_vbo 1
gl_pbo 1
gl_glsl 1
gl_glsl_filter 1
glsl_shader_mame0 none
glsl_shader_mame1 none
glsl_shader_mame2 none
glsl_shader_mame3 none
glsl_shader_mame4 none
glsl_shader_mame5 none
glsl_shader_mame6 none
glsl_shader_mame7 none
glsl_shader_mame8 none
glsl_shader_mame9 none
glsl_shader_screen0 none
glsl_shader_screen1 none
glsl_shader_screen2 none
glsl_shader_screen3 none
glsl_shader_screen4 none
glsl_shader_screen5 none
glsl_shader_screen6 none
glsl_shader_screen7 none
glsl_shader_screen8 none
glsl_shader_screen9 none
gl_glsl_vid_attr 1

#
# PER-WINDOW VIDEO OPTIONS
#
screen auto
aspect auto
resolution auto
view auto
screen0 auto
aspect0 auto
resolution0 auto
view0 auto
screen1 auto
aspect1 auto
resolution1 auto
view1 auto
screen2 auto
aspect2 auto
resolution2 auto
view2 auto
screen3 auto
aspect3 auto
resolution3 auto
view3 auto

#
# FULL SCREEN OPTIONS
#
switchres 1
useallheads 0

#
# SOUND OPTIONS
#
audio_latency 2

#
# SDL KEYBOARD MAPPING
#
keymap 0
keymap_file keymap.dat
uimodekey SCRLOCK

#
# SDL JOYSTICK MAPPING
#
joy_idx1 auto
joy_idx2 auto
joy_idx3 auto
joy_idx4 auto
joy_idx5 auto
joy_idx6 auto
joy_idx7 auto
joy_idx8 auto
sixaxis 0

#
# SDL LOWLEVEL DRIVER OPTIONS
#
videodriver auto
audiodriver auto
gl_lib auto

skip_gameinfo 1



CannonFodderSE
MAME Fan
Reged: 10/22/13
Posts: 4
Send PM


Re: Unable to remove joystick deadzone new [Re: CannonFodderSE]
#316311 - 10/24/13 01:56 AM


Slight correction on mame version. It is Build version: 0.149 (Jul 29 2013) from the Ubuntu repository.



BadMouth
Arcade Racing Fan
Reged: 06/13/11
Posts: 70
Send PM


Re: Unable to remove joystick deadzone new [Re: CannonFodderSE]
#316383 - 10/25/13 07:53 PM


ini file looks ok to me.

Check to see if MAME generated individual ini files for the games at some point. Those override mame.ini

Make sure the gun is only mapped to the axis, not axis + and axis -

Since you have them showing up as joysticks, the sensitivity setting under analog controls in MAME's in-game menu (TAB) may also come into play. Ignore the settings that have the word digital in them, those only have an effect when keys are substituted for analog inputs.

That's all I can think of at the moment.



chemame2
MAME Fan
Reged: 11/11/13
Posts: 2
Send PM


Re: Unable to remove joystick deadzone new [Re: CannonFodderSE]
#317261 - 11/11/13 10:54 PM


I am experiencing identical symptoms. It's as if there's a "snap" turned on to both the X and the Y axis.

I've confirmed that this does not exist at the hardware or driver level. Mouse pointer moves fluidly and smoothly across X and Y axis UNTIL THE ROM IS RUN VIA MAME.

It's very easy to see what's happening, because MAME turns on the crosshairs in any lightgun game.

I noticed this in Operation Wolf and also in Zero Point before I (1) tried unsuccessfully to find the setting to fix it, and (2) did a google search and landed here.

It can't be pointer specific at this point, but for what it's worth I am using a Wii controller with IR input turned on, using the CWiiD bundle for a pointer driver.

Again, the pointer works 100% perfectly in all applications except mame. :-(



chemame2
MAME Fan
Reged: 11/11/13
Posts: 2
Send PM


Re: Unable to remove joystick deadzone new [Re: chemame2]
#317262 - 11/11/13 11:00 PM


UPDATE: on a whim, I tried running the executable using "-joystick_deadzone 0" on the commandline, and that works. Weird. Need to go investigate the ini file a bit more I guess.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Unable to remove joystick deadzone new [Re: chemame2]
#317264 - 11/11/13 11:37 PM


> UPDATE: on a whim, I tried running the executable using "-joystick_deadzone 0" on the
> commandline, and that works. Weird. Need to go investigate the ini file a bit more I
> guess.

I'm confused that you're confused. That's precisely what -joystick_deadzone (and joystick_deadzone in the INI file) is for



AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM


Re: Unable to remove joystick deadzone new [Re: R. Belmont]
#317267 - 11/11/13 11:54 PM


The problem he's having is that the joystick_deadzone option only works when he specifies it on the command line, not in mame.ini.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Unable to remove joystick deadzone new [Re: AWJ]
#317302 - 11/12/13 08:48 PM


> The problem he's having is that the joystick_deadzone option only works when he
> specifies it on the command line, not in mame.ini.

That's not actually clear, since he isn't the OP (who does have it off in his ini).



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Unable to remove joystick deadzone new [Re: CannonFodderSE]
#317303 - 11/12/13 08:49 PM


You're almost certainly picking up another .ini that turns it back on. Does -joystick_deadzone 0 on the commandline help? If so, a -verbose run might pick up where the rogue .ini file is.


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 292 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3795