Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Trackball in MAME  (Read 4407 times)

0 Members and 1 Guest are viewing this topic.

GregD

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 443
  • Last login:December 19, 2024, 04:27:31 pm
    • Arcade Nebula
Trackball in MAME
« on: January 27, 2012, 11:24:25 am »
******Got it working by messing with the multimouse settings.  Thanks.********



Maybe this should be in the Software forum so feel free to move if need be.  I am having a problem getting my Happ trackball with Optiwiz to work in MAME.  I am using Hyperspin for a front end and the trackball functions fine in HS and on the PC as a mouse.  I am using MAMEUI32.  I inherited this setup so I am not exactly sure what is going on.  Basically, I have three .ini files in my mame folder.  Two are on the root of the folder and one is in the ini folder.  I have tried making adjustments to each but I honestly can't tell if anything is working.  My executable file for the MAMEUI is called mame.exe.  Anyone have any ideas?  Also, I am able to use the mouse in MAME for games like Golden Tee which is what I was using to test.  Sorry for the newbie question.  Hopefully something will jump out to one of you.  Thanks in advance.

I have a file named MAMEUI32.ini in the mame folder that has the following settings:
#
# DISPLAY STATE OPTIONS
#
default_game              spacegun
default_folder_id         15
show_image_section        1
full_screen               0
current_tab               snapshot
show_tool_bar             1
show_status_bar           1
hide_folders              
show_folder_section       1
show_tabs                 1
hide_tabs                 "marquee, title, cpanel, pcb, history"
history_tab               0
sort_column               0
sort_reversed             1
window_x                  0
window_y                  0
window_width              640
window_height             428
window_state              1
text_color                -1
clone_color               -1
custom_color              0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
list_mode                 4
splitters                 152,362
list_font                 "-8,0,0,0,400,0,0,0,0,0,0,0,0,MS Sans Serif"
column_widths             185,78,84,84,64,88,74,108,60,144,84,60
column_order              0,2,3,4,5,6,7,8,9,1,10,11
column_shown              1,0,1,1,1,1,1,1,1,1,0,0

#
# INTERFACE OPTIONS
#
language                  english
check_game                0
joystick_in_interface     1
keyboard_in_interface     0
random_background         0
broadcast_game_name       0
hide_mouse                0
inherit_filter            0
offset_clones             0
stretch_screenshot_larger 0
cycle_screenshot          0
screenshot_bordersize     11
screenshot_bordercolor    -1
exec_command              
exec_wait                 0

#
# SEARCH PATH OPTIONS
#
flyer_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\flyers
cabinet_directory         F:\Hyperspin\Hyperspin\EMULATORS\mame\cabinets
marquee_directory         F:\Hyperspin\Hyperspin\EMULATORS\mame\marquees
title_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\titles
cpanel_directory          F:\Hyperspin\Hyperspin\EMULATORS\mame\cpanel
pcb_directory             F:\Hyperspin\Hyperspin\EMULATORS\mame\pcb
background_directory      F:\Hyperspin\Hyperspin\EMULATORS\mame\bkground
folder_directory          folders
icons_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\icons

#
# FILENAME OPTIONS
#
history_file              history.dat
mameinfo_file             mameinfo.dat

#
# NAVIGATION KEY CODES
#
ui_key_up                 KEYCODE_UP
ui_key_down               KEYCODE_DOWN
ui_key_left               KEYCODE_LEFT
ui_key_right              KEYCODE_RIGHT
ui_key_start              "KEYCODE_ENTER NOT KEYCODE_LALT"
ui_key_pgup               KEYCODE_PGUP
ui_key_pgdwn              KEYCODE_PGDN
ui_key_home               KEYCODE_HOME
ui_key_end                KEYCODE_END
ui_key_ss_change          KEYCODE_INSERT
ui_key_history_up         KEYCODE_DEL
ui_key_history_down       "KEYCODE_LALT KEYCODE_0"
ui_key_context_filters    "KEYCODE_LCONTROL KEYCODE_F"
ui_key_select_random      "KEYCODE_LCONTROL KEYCODE_R"
ui_key_game_audit         "KEYCODE_LALT KEYCODE_A"
ui_key_game_properties    "KEYCODE_LALT KEYCODE_ENTER"
ui_key_help_contents      KEYCODE_F1
ui_key_update_gamelist    KEYCODE_F5
ui_key_view_folders       "KEYCODE_LALT KEYCODE_D"
ui_key_view_fullscreen    KEYCODE_F11
ui_key_view_pagetab       "KEYCODE_LALT KEYCODE_B"
ui_key_view_picture_area  "KEYCODE_LALT KEYCODE_P"
ui_key_view_status        "KEYCODE_LALT KEYCODE_S"
ui_key_view_toolbars      "KEYCODE_LALT KEYCODE_T"
ui_key_view_tab_cabinet   "KEYCODE_LALT KEYCODE_3"
ui_key_view_tab_cpanel    "KEYCODE_LALT KEYCODE_6"
ui_key_view_tab_flyer     "KEYCODE_LALT KEYCODE_2"
ui_key_view_tab_history   "KEYCODE_LALT KEYCODE_8"
ui_key_view_tab_marquee   "KEYCODE_LALT KEYCODE_4"
ui_key_view_tab_screenshot "KEYCODE_LALT KEYCODE_1"
ui_key_view_tab_title     "KEYCODE_LALT KEYCODE_5"
ui_key_view_tab_pcb       "KEYCODE_LALT KEYCODE_7"
ui_key_quit               "KEYCODE_LALT KEYCODE_Q"

#
# NAVIGATION JOYSTICK CODES
#
ui_joy_up                 1,1,1,1
ui_joy_down               1,1,1,2
ui_joy_left               1,1,2,1
ui_joy_right              1,1,2,2
ui_joy_start              1,0,1,0
ui_joy_pgup               2,1,2,1
ui_joy_pgdwn              2,1,2,2
ui_joy_home               0,0,0,0
ui_joy_end                0,0,0,0
ui_joy_ss_change          2,0,3,0
ui_joy_history_up         2,0,4,0
ui_joy_history_down       2,0,1,0
ui_joy_exec               0,0,0,0

#
# GAME STATISTICS


I have another ini file in the mame folder named mame.ini with the following settings:

#
# DISPLAY STATE OPTIONS
#
default_game              smbombr1
default_folder_id         1
show_image_section        1
full_screen               0
current_tab               0
show_tool_bar             1
show_status_bar           1
hide_folders              
show_folder_section       1
show_tabs                 1
hide_tabs                 "marquee, title, cpanel, pcb, history"
history_tab               0
sort_column               0
sort_reversed             0
window_x                  231
window_y                  311
window_width              640
window_height             428
window_state              1
text_color                -1
clone_color               -1
custom_color              0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
list_mode                 4
splitters                 152,362
list_font                 "-8,0,0,0,400,0,0,0,0,0,0,0,0,MS Sans Serif"
column_widths             185,78,84,84,64,88,74,108,60,144,84,60
column_order              0,2,3,4,5,6,7,8,9,1,10,11
column_shown              1,0,1,1,1,1,1,1,1,1,0,0

#
# INTERFACE OPTIONS
#
language                  english
check_game                0
joystick_in_interface     1
keyboard_in_interface     0
random_background         0
broadcast_game_name       0
hide_mouse                0
inherit_filter            0
offset_clones             0
stretch_screenshot_larger 0
cycle_screenshot          0
screenshot_bordersize     11
screenshot_bordercolor    -1
exec_command              
exec_wait                 0

#
# SEARCH PATH OPTIONS
#
flyer_directory           flyers
cabinet_directory         cabinets
marquee_directory         marquees
title_directory           titles
cpanel_directory          cpanel
pcb_directory             pcb
background_directory      bkground
folder_directory          folders
icons_directory           icons

#
# FILENAME OPTIONS
#
history_file              history.dat
mameinfo_file             mameinfo.dat

#
# NAVIGATION KEY CODES
#
ui_key_up                 KEYCODE_UP
ui_key_down               KEYCODE_DOWN
ui_key_left               KEYCODE_LEFT
ui_key_right              KEYCODE_RIGHT
ui_key_start              "KEYCODE_ENTER NOT KEYCODE_LALT"
ui_key_pgup               KEYCODE_PGUP
ui_key_pgdwn              KEYCODE_PGDN
ui_key_home               KEYCODE_HOME
ui_key_end                KEYCODE_END
ui_key_ss_change          KEYCODE_INSERT
ui_key_history_up         KEYCODE_DEL
ui_key_history_down       "KEYCODE_LALT KEYCODE_0"
ui_key_context_filters    "KEYCODE_LCONTROL KEYCODE_F"
ui_key_select_random      "KEYCODE_LCONTROL KEYCODE_R"
ui_key_game_audit         "KEYCODE_LALT KEYCODE_A"
ui_key_game_properties    "KEYCODE_LALT KEYCODE_ENTER"
ui_key_help_contents      KEYCODE_F1
ui_key_update_gamelist    KEYCODE_F5
ui_key_view_folders       "KEYCODE_LALT KEYCODE_D"
ui_key_view_fullscreen    KEYCODE_F11
ui_key_view_pagetab       "KEYCODE_LALT KEYCODE_B"
ui_key_view_picture_area  "KEYCODE_LALT KEYCODE_P"
ui_key_view_status        "KEYCODE_LALT KEYCODE_S"
ui_key_view_toolbars      "KEYCODE_LALT KEYCODE_T"
ui_key_view_tab_cabinet   "KEYCODE_LALT KEYCODE_3"
ui_key_view_tab_cpanel    "KEYCODE_LALT KEYCODE_6"
ui_key_view_tab_flyer     "KEYCODE_LALT KEYCODE_2"
ui_key_view_tab_history   "KEYCODE_LALT KEYCODE_8"
ui_key_view_tab_marquee   "KEYCODE_LALT KEYCODE_4"
ui_key_view_tab_screenshot "KEYCODE_LALT KEYCODE_1"
ui_key_view_tab_title     "KEYCODE_LALT KEYCODE_5"
ui_key_view_tab_pcb       "KEYCODE_LALT KEYCODE_7"
ui_key_quit               "KEYCODE_LALT KEYCODE_Q"

#
# NAVIGATION JOYSTICK CODES
#
ui_joy_up                 1,1,1,1
ui_joy_down               1,1,1,2
ui_joy_left               1,1,2,1
ui_joy_right              1,1,2,2
ui_joy_start              1,0,1,0
ui_joy_pgup               2,1,2,1
ui_joy_pgdwn              2,1,2,2
ui_joy_home               0,0,0,0
ui_joy_end                0,0,0,0
ui_joy_ss_change          2,0,3,0
ui_joy_history_up         2,0,4,0
ui_joy_history_down       2,0,1,0
ui_joy_exec               0,0,0,0

In the ini folder within the mame folder there is another mame.ini file with the following settings:

<UNADORNED0>              

#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
rompath                   F:\Hyperspin\Hyperspin\EMULATORS\mame\roms
hashpath                  hash
samplepath                F:\Hyperspin\Hyperspin\EMULATORS\mame\samples
artpath                   F:\Hyperspin\Hyperspin\EMULATORS\mame\artwork
ctrlrpath                 F:\Hyperspin\Hyperspin\EMULATORS\mame\ctrlr
inipath                   F:\Hyperspin\Hyperspin\EMULATORS\mame\ini
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             F:\Hyperspin\Hyperspin\EMULATORS\mame\cfg
nvram_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\nvram
memcard_directory         memcard
input_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\inp
state_directory           F:\Hyperspin\Hyperspin\EMULATORS\mame\sta
snapshot_directory        snap
diff_directory            F:\Hyperspin\Hyperspin\EMULATORS\mame\diff
comment_directory         comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                    
autosave                  0
playback                  
record                    
mngwrite                  
aviwrite                  
wavwrite                  
snapname                  %g/%i
snapsize                  auto
snapview                  internal
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             0
use_overlays              1
use_bezels                0

#
# 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                     1
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                1
steadykey                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
uimodekey                 auto

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             mouse
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          mouse
lightgun_device           keyboard
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

#
# WINDOWS DEBUGGING OPTIONS
#
oslog                     0
watchdog                  0
debugger_font             "Lucida Console"
debugger_font_size        9

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
multithreading            0
numprocessors             auto
profile                   0
bench                     0

#
# WINDOWS VIDEO OPTIONS
#
video                     d3d
numscreens                1
window                    0
maximize                  1
keepaspect                1
prescale                  1
waitvsync                 0
syncrefresh               0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch                 1

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion                9
filter                    1

#
# PER-WINDOW VIDEO OPTIONS
#
aspect                    auto
resolution                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
#
triplebuffer              0
switchres                 0
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0

#
# WINDOWS SOUND OPTIONS
#
audio_latency             2

#
# INPUT DEVICE OPTIONS
#
dual_lightgun             0
« Last Edit: January 27, 2012, 12:40:52 pm by GregD »

Spacedueler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:January 24, 2017, 04:24:45 pm
Re: Trackball in MAME
« Reply #1 on: January 27, 2012, 01:15:07 pm »
I'm a newbie to but I think I can answer this one. First I wonder why your exe file is mame.exe, not mameui32.exe - maybe it was renamed for hyperspin to find it?
If you launch your mame.exe, does it open the mameui32 frontend?

Next, I'm gathering the trackball works in some games but not others? You didn't say so, so I have to ask: do you know to hit the TAB key while in a game, select "input (this game)" and assign the trackball to your dial or X or Y inputs? You may find the input hasn't been set, or is set to something like "mouse 1x" - but your trackball is actually "mouse2x" (this is due to the multimouse setting in your mame.ini)

In your mame.ini look at this section:
  # CORE INPUT OPTIONS
  #
  coin_lockout              1
  ctrlr                   
  mouse                     1
  joystick                  1
  lightgun                  0
  multikeyboard             0
  multimouse                1

the mouse is set to work, but so is "multimouse" - this is why your games may be looking for mouse2x, or mouse3x etc.

Next thing to check is the individual game ini files in the ini folder. The settings in those files override the settings in the mame.ini file.
Another thing to check is in the config folder. A cfg file is created for each game. Take a look there just to see how those files are written. They open with any notepad or wordpad. You could try deleting the ini and/or cfg for the game that isn't working. Mame will build a new one when you restart the game and use tab to assign new settings.