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: Using dualshock 4 as trackball in Mame Windows  (Read 3071 times)

0 Members and 1 Guest are viewing this topic.

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Using dualshock 4 as trackball in Mame Windows
« on: March 19, 2018, 12:43:31 pm »
Hello I'm new here and I hope you can help me:

I'm trying to make Dualshock 4 controller to act as a trackball in Mame64 for windows.
Dualshock 4 has a touchpad that is perfect for a trackball, the program DS$Windows (that enable DS4 to function on PC through xinput), also have dedicated option to trackball functions.

The problem is that in Mame64, moving the DS4 touchpad will only move the cursor, when assigning inputs it's not recognized at all.
Mouse is instead recognized (assining tracjball inputs with mouse will give "mouse X" or "Mouse Y").

I have tried many option in DS4Windows and in mame.ini file, no luck.
ANyone know how can I oslve this?

Thank you

shaolindrunkard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 570
  • Last login:August 19, 2021, 11:13:43 am
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #1 on: March 20, 2018, 04:49:10 pm »
Have you enabled multi-mouse in the mame settings? It might only be recognizing the first mouse if you have not. As long as the touch pad moves the mouse cursor in windows it should work in Mame.

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #2 on: March 21, 2018, 06:48:20 am »
It should be enabled, hers my mame.ini file:

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     1
joystick                  1
lightgun                  1
multikeyboard             0
multimouse                1
steadykey                 0
ui_active                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
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          mouse
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse


With the dualshock 4 touchpad I can move the cursor in both windows and inside mame.

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #3 on: March 23, 2018, 11:41:43 am »
I tried also setting multimouse 0 and moving the mame.ini in the ini folder, still no results.

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #4 on: April 09, 2018, 09:54:54 am »
sorry to bother again guys, but I can't seems to solve this, anyone has any clues about this issue?

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #5 on: May 07, 2018, 07:13:19 am »
I tried this time using the DS4 touchpad as a lightgun input (so a different kind of input) and it doesn't work as well.

So it seems the problem is not only the trackball input, any clue?
DS4 touchpad works normally in windows as a "mouse device", it's only mame that has trouble detecting it.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #6 on: May 07, 2018, 02:20:25 pm »
Do you have both the touchpad and a mouse plugged in at the same time?  It should still work but try unplugging the regular mouse and reboot using just the touchpad and see if that helps.  Might be some kind of ID issue?

PS4 pad seems kind of small to get any use out of it.

wizzy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 03, 2018, 05:34:35 pm
  • I want to build my own arcade controls!
Re: Using dualshock 4 as trackball in Mame Windows
« Reply #7 on: May 07, 2018, 05:34:12 pm »
Thanks for the advice, I tried to unplug mouse and using DS4 solo, but mame don't want to detect the touchpad input from DS4.

The curious thing is that I can move the mouse cursor with ds4 touchpad inside mame64.