###############################################################################
# xmamerc.dist
# Sample configuration file for X-Mame
###############################################################################
#
# you should copy ( and edit ) this file to $HOME/xmame/xmamerc
#
# by mame@drake.dit.upm.es
#
# Available since release 0.20.3
#
# Each line has the format:
# <option> <value>
#
# Spaces, tabs, newlines and empty lines are allowed anywhere in the file
# Every thing that follows "#" sign is considered a comment, and ignored
#
###############################################################################

#
############################ General options ##########################
#

# Where does your Mame rom files reside? 
# This option can be overriden by MAMEDIR environment variable
mamedir		/usr/lib/games/mame

# Also Mame needs a public-writable directory to store high scores
spooldir        /var/lib/games/mame

# What is your loved game? ( remember that mame defaults to "pacman" )
defaultgame	galturbo

# Type here the name of the display where play xmame
# overriden by DISPLAY environment variable. Not usefull in config file but...
# displayname	localhost:0.0

#
############################ Audio options ##########################
#

# Use sound if available. default is 0 (Don't)
play_sound 	0

# In Linux you can select between /dev/dsp or /dev/audio audio devices
#audiodevice     /dev/audio
audiodevice     /dev/dsp

# to disable use of FM synthetizer chip emulation features set next to 1
# ( of course, sound should be enabled to take effect.... )
# NOTE: at this moment FM synth is not available in UNIX machines
dontuse_fm_synth 0

# select audio sample frequency ( 11050-44100 )
# not every implementations supports this feature
samplefreq	22050

# if your system is timer based you can manually set audio timer frequency
timerfreq	50

#
######################### INPUT OPTIONS ##############################
#

# Use mouse if available
use_mouse	1

# Use joystick if available
use_joystick	1

# If your mouse is very "noisy", that is when not used reports moves
# you may want to use this variable as a "noise filter"
# so joystick reported moves is divided by 2^filtervalue
# see readme.unix notes about X11 joysticks
joyfilter	5

# Do you want use trackball emulation via mouse?
use_trakball	0

# If using X11 based joystick enter name of joystick device
# Use provided "xlistdev" command, to see which one are availables 
# on your system
x11joyname 	Joystick

# If your X11 joystick has X and Y axis swapped, correct it: 
swapjoyaxis	0

# When using FM TOWNS game pad you can select pad device name
towns_pad_name  /dev/pad00

#
######################### VIDEO OPTIONS ##############################
#

# Define X and Y axis scale related to original bitmap. Default is 1
widthscale	2
heightscale	2

# If your screen refresh is to slow, you can skip frames with frameskip option
frameskip	3

# If MIT shared memory support is compiled in you can disable it setting to 0
# ( default is 1 --> try to use mitshm if available )
use_mitshm	1

# Some games shows "flickering" when screen refresh occurs. You can select
# between XFlush() or XSync() as screen refresh method
use_xsync       0

# If you have problems with colors, perhaps find usefull force usage of
# a private color map structure
private_colormap 0

# We recommend to use 8bit PseudoColor X-Visuals instead of TrueColor ones
# If desired ( or no PseudoColor Visuals available on your server ), 
# you can skip PseudoColor availability test and force TrueColor use
# ( Really has only sense for testing purposes. Should be disabled, but ... )
force_truecolor 0

# Linux SVGALIB support
# When compiled to use Linux SVGALIB you may want to set these value to 
# a prefixed value. If running under X-Windows, has no effect
# videomode 0   use standard 640x480 x256 mode, safe bet should work on all
#               pc's
# videomode 1   use tweaked vgamodes, with simulated scanlines, might not
#               work on all machines, use with caution
# videomode 2   tweaked vgamodes without scanlines, might not work on all
#               machines, use with caution
#
videomode	0

#
############################ Keyboard remapping ##########################
#

# The main reason for this file: keyboard remapping sequences
# syntax follows:
#
# mapkey	<Xcode>,<Scancode>
#
# Xcode means the HEX code of the key as appears in /usr/include/X11/keysymdef.h
# Scancode means the hexadecimal code that represents the value used for Xmame
# 	in keyboard inputs, as defined in src/osdepend.h xmame source file
# IMPORTANT: 
#	1- Due to some limitations, only LATIN-1 X-codes ( 0x0000-0x00ff ) and
#	Especial X-keycodes ( 0xff00-0xffff ) are supported
#	2- Some keys are keyboard dependent: As Xmame works internally with
#	Standard US-AT keyboard codes, you must take care in remmaping some keys
#

# An example: map space as "firebutton" (Mame predefines it as OSD_KEY_RCONTROL)
# in simbolic Xlib/Mame notation it should be:
#
# mapkey XK_space,OSD_KEY_RCONTROL 
# 
# So looking in X11/keysymdef.h and src/osdepend.h we'll write
mapkey	0x0020,0x0039

# (Other example). To use F8 key to insert coin you shoud use:
# mapkey  0xffc5,0x0004
