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: Mouse movement being bounded by box (trackball, etc)  (Read 12393 times)

0 Members and 1 Guest are viewing this topic.

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Mouse movement being bounded by box (trackball, etc)
« on: July 27, 2014, 10:33:57 pm »
I did some poking around and found someone who ran into something similar w/ SDL Mame.  They described it as "being blocked by walls".
The suggestion was to set the environment variable SDL_MOUSE_RELATIVE=1.  I've set it in ~/.bashrc and ~/.bash_profile and it seems to be having no effect.

Is any one successfully using a trackball or spinner w/ GroovyMame?
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #1 on: August 02, 2014, 02:32:07 pm »
Hi telengard,

Are you having this problem with all trackball or spinner games? Have you tested base line SDL MAME too?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #2 on: August 02, 2014, 02:46:04 pm »
Hi telengard,

Are you having this problem with all trackball or spinner games? Have you tested base line SDL MAME too?

Heya Calamity,

I've only tried it w/ Centipede, I'll try some other games.  I'll try a few spinner games also.  I'm using an Optipac interface.  I'll try out stock SDL Mame also.

thanks for the ideas, I'll report back after I've tested all this stuff...

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #3 on: August 02, 2014, 04:56:23 pm »
Just finished up testing a little bit ago.

- Other trackball games exhibit the same issue
- Spinner games also exhibit the issue
- stock sdl mame trackball works fine

~telengard

S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #4 on: August 08, 2014, 12:56:43 pm »
Is it worth testing without the custom video modes to see if that is the issue?  If so, any help on how to run without that would be helpful.

thanks!
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #5 on: August 08, 2014, 01:09:50 pm »
You should try launching centipede at the desktop's resolution. For instance if it is 648x480@60, then launch:

groovymame centipede -resolution 648x480@60

I believe the problem is that SDL is not aware of the resolution change for some reason... not sure.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #6 on: August 09, 2014, 01:24:29 pm »
You should try launching centipede at the desktop's resolution. For instance if it is 648x480@60, then launch:

groovymame centipede -resolution 648x480@60

I believe the problem is that SDL is not aware of the resolution change for some reason... not sure.

Hi Calamity,

Thanks for the info.  Even running it at 800x600 it is happening.  I'm confused about the desktop resolution though, what is it if AdvanceMenu is run straight out of boot (I'm running Linux and no desktop at all)?
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #7 on: August 13, 2014, 05:06:55 pm »
I'm confused about the desktop resolution though, what is it if AdvanceMenu is run straight out of boot (I'm running Linux and no desktop at all)?

I meant launching GM from a desktop manager like LXDE (included GA), opening a terminal in there and launching it from command line. The idea is to launch GM at same resolution used by the desktop so any resolution switch has no effect.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #8 on: August 17, 2014, 05:04:53 pm »
I'm confused about the desktop resolution though, what is it if AdvanceMenu is run straight out of boot (I'm running Linux and no desktop at all)?

I meant launching GM from a desktop manager like LXDE (included GA), opening a terminal in there and launching it from command line. The idea is to launch GM at same resolution used by the desktop so any resolution switch has no effect.

Ok, I got some time to try this out today.  Launched LXDE, the desktop was 640x480@60.  Launched centipede w/ groovymame using the same resolution and the issue is still there.
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #9 on: August 31, 2014, 01:03:40 pm »
Calamity,

I started poking around the source code and found this in src/ods/sdl/window.c:

  //FIXME: SDL1.3: really broken: the whole SDL code
        //       will only work correct with relative mouse movements ...
        //SDL_SetRelativeMouseMode
        if (!window->fullscreen && !sdlinput_should_hide_mouse(machine))
        {
            SDL_ShowCursor(SDL_ENABLE);
            if (SDL_GetWindowGrab(window->sdl_window ))
                SDL_SetWindowGrab(window->sdl_window, SDL_FALSE);
        }

Is this a change made for GroovyMame.

Is anyone else seeing this behavior or am I the only one using a mouse on Linux?    :)
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #10 on: September 03, 2014, 04:47:10 am »
Hi telengard,

That code belongs to main line MAME, but it could point to the roots of the problem.

I don't have a working Linux setup at the moment since I accidentally destroyed by pendrive install. I promise I'll be looking at this problem when I have the time.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #11 on: September 03, 2014, 09:46:05 am »
Hi telengard,

That code belongs to main line MAME, but it could point to the roots of the problem.

I don't have a working Linux setup at the moment since I accidentally destroyed by pendrive install. I promise I'll be looking at this problem when I have the time.

Hi Calamity,

That makes sense, it sure seems to be related.  Sorry to hear about your pendrive install, I've hosed a couple myself by not umounting correctly before removing.

Thanks for looking into this issue, I appreciate it a lot!
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

strontium

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:December 02, 2021, 05:12:52 pm
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #12 on: January 30, 2015, 02:09:38 am »
Hi guys,

This problem has been around for quite some time now, in fact I originally posted about this in sept 2013 and have been quietly holding out for a fix since: http://forum.arcadecontrols.com/index.php?topic=134528.0

It's also mentioned in abother way on the project page here as a bug: https://code.google.com/p/groovyarcade/issues/detail?id=7

It's a real shame as groocyarcade is great, calamity is there any more news on if this can be fixed or even progressed.

I appreciate were not all developers and can't really help but it would be so cool to be able to use the mouse / trackball without having to go back to windows.

Thanks again

Strontium

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #13 on: January 30, 2015, 05:15:59 pm »
I'll be looking into this. In the meanwhile it would be good to check if the new builds based on sdl2 have this issue too.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

strontium

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:December 02, 2021, 05:12:52 pm
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #14 on: January 31, 2015, 01:10:38 am »
Ok Calamity will do, just so I'm sure do you mean the beta version? Would you suggest the download from the hyperlink on the project page or a git pull?

Thanks again

Strontium

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #15 on: February 14, 2015, 05:37:55 pm »
Ok Calamity will do, just so I'm sure do you mean the beta version? Would you suggest the download from the hyperlink on the project page or a git pull?

Sorry from my late answer. Yes, I meant the beta and it can only be downloaded from the link.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #16 on: February 27, 2015, 04:14:44 pm »
Ok so Ves has been checking this and finally we found the culprit for the mouse misbehaviour. It turns out its XInput what causes the issue. By default we were enabling it to provide support for wiimotes, etc. But this seems to interact with the mouse. So in the most recent GM patch (0.159 Switchres 0.015f) I've disabled Xinput by default (leaving it as official MAME is), so just compile it using the new patch and the mouse should work fine. Groovy Arcade builds will keep supporting wiimotes however.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #17 on: March 07, 2015, 04:23:27 pm »
Ok so Ves has been checking this and finally we found the culprit for the mouse misbehaviour. It turns out its XInput what causes the issue. By default we were enabling it to provide support for wiimotes, etc. But this seems to interact with the mouse. So in the most recent GM patch (0.159 Switchres 0.015f) I've disabled Xinput by default (leaving it as official MAME is), so just compile it using the new patch and the mouse should work fine. Groovy Arcade builds will keep supporting wiimotes however.

Hi Calamity,

Thanks so much for getting to the bottom of this!  So, it seems I just need to follow the process here

http://forum.arcadecontrols.com/index.php/topic,135823.0.html

just for Linux, all default compile options, etc?

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #18 on: March 07, 2015, 05:45:47 pm »
Ugh, I'm running Ubuntu 12.04 LTS and no libsdl2 for it.  I guess if anyone gets this compiled if they could share it, I would be very grateful.
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #20 on: March 10, 2015, 06:15:05 am »
Ugh, I'm running Ubuntu 12.04 LTS and no libsdl2 for it.  I guess if anyone gets this compiled if they could share it, I would be very grateful.

Have you look here already (using xbmc ppa) ? http://www.ubuntuupdates.org/libsdl2-dev

Quote
Release:    precise (12.04)
Name:    libsdl2-dev
Latest version:    2.0.3+z4~20140315-8621-1ppa1precise1

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #21 on: April 18, 2015, 07:40:38 pm »
Ok, finally got all of the upgrades done on my GroovyArcade install (circa 2013) to run these new binaries.  For those interested, I had to upgrade or install the following:

pacman (arch's package manager) this also required removing some stuff to get the dependencies working
change SigLevel since I could not get the pacman security keys working
qt4gui
sdl_ttf
sdl2
libpng
updated romset (Centipede, etc seemed to have some files renamed), since the romset I got uses .7z I upgraded everything replacing my .zip

Dropped the new binary in and unfortunately I get no trackball at all now.   :(
Doesn't register for non gameplay usage too, like in the tab menu for assigning keys, etc.

It does work in advmenu as it has in the past
I have trackball_device set to mouse as it was before

Anyone else having this kind of issue with these new builds?  Or have any ideas on how to debug this?

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #22 on: April 21, 2015, 02:00:50 pm »
Hi telengard,

Ask Ves directly, I know there has been a problem with SDL2 and input devices, different to the one that we were discussing. I know he solved it recently but I'd say it's in one of the beta distros. Also, check if it works inside X.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #23 on: April 21, 2015, 02:14:53 pm »
Hi telengard,

Ask Ves directly, I know there has been a problem with SDL2 and input devices, different to the one that we were discussing. I know he solved it recently but I'd say it's in one of the beta distros. Also, check if it works inside X.

Hi Calamity, thanks for the info.

It does seem to work in X assuming that AdvMenu is an X application.

I will contact Ves about this, thanks what is the best way to reach him?  His email on the google code page has an ellipsis (...).

~telengard
« Last Edit: April 21, 2015, 02:17:23 pm by telengard »
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #24 on: April 21, 2015, 02:36:23 pm »
It does seem to work in X assuming that AdvMenu is an X application.

I didn't mean that. I meant when you run GroovyMAME from command line inside the windows manager (LXDE).

You can just pm Ves from this forum.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #25 on: April 21, 2015, 02:45:22 pm »
It does seem to work in X assuming that AdvMenu is an X application.

I didn't mean that. I meant when you run GroovyMAME from command line inside the windows manager (LXDE).

You can just pm Ves from this forum.

Ah, OK I will try that tonight, thanks!

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #26 on: April 25, 2015, 03:31:16 pm »
Hello,
telengard remember configure the trackball in mame/ume.ini

Quote
mouse                     1
trackball_device          mouse
mouse_device             mouse

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #27 on: April 25, 2015, 09:00:16 pm »
Hello,
telengard remember configure the trackball in mame/ume.ini

Quote
mouse                     1
trackball_device          mouse
mouse_device             mouse

Hi Ves,

I do have those settings, but I have them in /home/arcade/mame.ini.  Is that the wrong ini file?  That's the one I've always been using.  I'm also using the groovymame binary, which if I understand right will use mame.ini, not ume.ini?
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #28 on: May 07, 2015, 12:50:50 pm »
It does seem to work in X assuming that AdvMenu is an X application.

I didn't mean that. I meant when you run GroovyMAME from command line inside the windows manager (LXDE).

You can just pm Ves from this forum.

Hi Calamity,

I tried that out (launching groovymame from the command line inside the window manager), exact same behavior.  No movement at all.  The mouse also doesn't register in the menu system.

Do you recall what the input issue was w/ SDL2?

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #29 on: May 10, 2015, 03:38:27 pm »
I do have those settings, but I have them in /home/arcade/mame.ini.  Is that the wrong ini file?  That's the one I've always been using.  I'm also using the groovymame binary, which if I understand right will use mame.ini, not ume.ini?

Beware of this. In recent version of GroovyArcade you really need to edit ume.ini even if you're using GroovyMAME. Editing mame.ini has no effect because the GroovyMAME executable is indeed a symbolic link to the GroovyUME one. Confusing, I know.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #30 on: May 10, 2015, 06:08:36 pm »
I do have those settings, but I have them in /home/arcade/mame.ini.  Is that the wrong ini file?  That's the one I've always been using.  I'm also using the groovymame binary, which if I understand right will use mame.ini, not ume.ini?

Beware of this. In recent version of GroovyArcade you really need to edit ume.ini even if you're using GroovyMAME. Editing mame.ini has no effect because the GroovyMAME executable is indeed a symbolic link to the GroovyUME one. Confusing, I know.

Yup, had gotten bitten by that before.  In this case I dropped in the 2 different binaries groovyume and groovymame (the ones built with no xinput).  I'm pretty sure my config is being used since it picks up my roms etc.

I still have no mouse input at all, but just in groovymame.  It's working in X, advmenu, etc.

Do you know what Ves had hit as far as SDL2 input issues?
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

nexuscab

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:February 10, 2019, 08:42:59 am
  • I want to build my own arcade controls!
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #31 on: May 31, 2015, 09:42:52 am »
Did anyone ever figure this out? I'm having the same problem where sdlmame has no problems with the trackball, but with the noxinput build of 159 Calamity posted, I get no movement at all. With the regular builds of groovymame/groovyume I get movement but have the issue of the bounding box described above.

I have:
mouse 1
mouse_device mouse
trackball_device mouse

I am calling the noxinput build directly from the command line so it isn't an issue of the wrong binary running.

I should note that I'm running on the most recent GroovyArcade beta ISO in case that makes a difference with libraries, etc.

I'm a huge groovymame fan. I have it running on one windows machine with an HD4350, but this machine has an HD5650, plus I much prefer linux in general. I just can't live without Centipede and Tempest! :-)

Thanks everyone.

pakoman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:November 05, 2024, 08:36:26 am
  • I want to build my own arcade controls!
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #32 on: June 04, 2015, 03:09:13 am »
I found this issue also.

I'm using Groovyarcade 32bit (don't really remember which version of groovymame is in there).

I've noticed something interesting about this: if you activate de mouse for UI navigation, the UI cursor works perfectly, but the in-game mouse/trackball/lightgun input doesn't. And if you move fast the mouse in-game the "bounding box" will move to another place of the screen.

In lxde, advancemenu, etc. works fine.

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #33 on: June 06, 2015, 04:26:00 pm »
Odd, I don't get the bounding box anymore, I just don't get movement at all.   However if I move the trackball a LOT, I see it move a pixel or two.  I'm running 64 bit here.  Seems like it is also happening with the latest distribution, so I'm holding out hope for a fix where I can continue to keep my cabinet as is.
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #34 on: June 06, 2015, 04:51:30 pm »
Hi telengard,

I don't have a working Linux installation these days and I'm focused on the windows side, sorry. If you want to help me fixing this, and you have some experience compiling, please try this.

In src\osd\sdl\window.c, find this:

Code: [Select]
// Some configurations require events to be polled in the worker thread
//sdlinput_process_events_buf();

and change it by this:

Code: [Select]
// Some configurations require events to be polled in the worker thread
sdlinput_process_events_buf();

No idea if it could have something to do with the issue but definitely is related input and it's something we change in GM.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #35 on: June 06, 2015, 04:55:26 pm »
Hi telengard,

I don't have a working Linux installation these days and I'm focused on the windows side, sorry. If you want to help me fixing this, and you have some experience compiling, please try this.

In src\osd\sdl\window.c, find this:

Code: [Select]
// Some configurations require events to be polled in the worker thread
//sdlinput_process_events_buf();

and change it by this:

Code: [Select]
// Some configurations require events to be polled in the worker thread
sdlinput_process_events_buf();

No idea if it could have something to do with the issue but definitely is related input and it's something we change in GM.

Hi Calamity,

No problem at all, I'd be happy to help.  Should I apply this change to the 0.159 no-xinput sources?

~telengard
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #36 on: June 06, 2015, 04:58:31 pm »
If those are the sources you have, yes. Any version since that one should do.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #37 on: June 09, 2015, 05:07:25 pm »
Hi Calamity,

I was finally able to get it built for 64 bit using a VM (I only have a 32 bit Linux desktop and it is old, so some libraries weren't available). 
So, unfortunately with that change the same behavior (no mouse movement at all).

However, I was fiddling with arguments to mame by editing .xinitrc and noticed that if I ran at a resolution of 800x600 the mouse worked fine!
So, something with the correct resolution or  related is the issue?  In my case I am always testing out centipede which I believe is 240x256.

Also, it might not be clear from my previous posts, but I'm no longer getting the bounding box.  That went away w/ the no-xinput build.  Instead it is no movement at all (for certain resolutions).

Hopefully that is useful information!
« Last Edit: June 09, 2015, 05:11:57 pm by telengard »
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 10:33:03 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #38 on: July 26, 2015, 03:58:57 pm »
Just wondering if anyone has any ideas of what to try next?
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7466
  • Last login:August 08, 2025, 06:55:05 am
  • Quote me with care
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #39 on: July 28, 2015, 04:28:55 pm »
Hi telengard,

Sorry for my late answer.

Do you mean it works when MAME runs at 800x600 or when the desktop is at 800x600? What I'd do is to get two logs, one when it works, one when it doesn't, so we can compare.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi