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 12413 times)

0 Members and 1 Guest are viewing this topic.

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 04:48:51 pm
  • 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 #40 on: July 29, 2015, 07:10:54 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.

Hi Calamity, no problem at all... I've been tinkering away trying to narrow this down.

I meant when MAME runs @ 800x600, I don't use a desktop.

So, the mouse input works if I choose 800x600 and generic_15 for a monitor.  800x600 w/ my usual d9200 setting has no mouse input.  Not specifying a resolution and choosing either monitor type no mouse input as well.
I've found this by recreating a mame config and changing one thing at a time and playing around with settings.

I've attached 4 -log -verbose log files for each monitor type w/ 800x600 specified, and without after changing the monitor type in mame.ini.

groovymame -mouse -rol -resolution 800x600 -log -verbose centiped > output.txt
groovymame -mouse -rol -log -verbose centiped > output.txt

If you need any other types of logs I can get them for you...

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 #41 on: July 30, 2015, 04:48:31 am »
Ok, actually what happens when you force 800x600 with generic_15, is that mode switching is disabled, because 800x600 is out of range for that monitor preset. For the rest of cases the mode switch keeps enabled.

So this confirms the problem is that after a mode switch SDL (or whatever) can't read the mouse properly any more. Maybe something must be done explicitly after a mode change to restart the mouse.

It'd be interesting to test with -monitor lcd (and no -resolution setting), in theory it should work (not 100% sure).

You must not use the -ror/rol options with GroovyMAME. Instead, use the options -orientation horizontal / vertical / rotate_r / rotate_l. Otherwise you'll be short-circuiting SwitchRes internal orientation management.

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 04:48:51 pm
  • 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 #42 on: July 31, 2015, 10:54:10 pm »
Ok, actually what happens when you force 800x600 with generic_15, is that mode switching is disabled, because 800x600 is out of range for that monitor preset. For the rest of cases the mode switch keeps enabled.

So this confirms the problem is that after a mode switch SDL (or whatever) can't read the mouse properly any more. Maybe something must be done explicitly after a mode change to restart the mouse.

It'd be interesting to test with -monitor lcd (and no -resolution setting), in theory it should work (not 100% sure).

You must not use the -ror/rol options with GroovyMAME. Instead, use the options -orientation horizontal / vertical / rotate_r / rotate_l. Otherwise you'll be short-circuiting SwitchRes internal orientation management.

I tried w/ the -monitor lcd and surprisingly it did not work (I've attached the output).

I can't seem to use the -orientation X option because advmenu does not allow rotation options with a space according to the documentation.  I tried it and it didn't work unfortunately.
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 #43 on: August 19, 2015, 10:40:57 am »
Hey Guys,

I've just come back to check this thread and I still see that this issue persists, how frustrating. It's nice to see telengard, ves and calamity working on this to finally try and move it forward. As a linux distro nothing comes close to groovyarcade and the only reason I don't use it is because of this precise reason. I play Snakepit, golden tea, centipede, millipede and arkanoid a lot. I Just wanted to show some support although I can only do that morally as my linux skills are limited.

Hopefully this will get cracked soon as it will be a big win for the distro and it's future.

Thanks again,

Strontium   :)

Manta

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:November 30, 2019, 12:30:57 pm
  • I want to build my own arcade controls!
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #44 on: August 22, 2015, 11:00:02 pm »
Hello,

I'm seeing the same behavior with no mouse movement also. If there is anything you want me to try please ask. It would be great to have this solved for all.

Cheers,

-M

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 #45 on: August 29, 2015, 12:40:32 pm »
Hi,

VeS has been looking into this and he believes to have found the problem in the Groovy patch itself, some of the input polling code I moved around had created a redundancy that broke the mouse. We believe there have been two issues going on, first one is when we used to compile it with xinput enabled for wiimotes that caused the mouse to be bounded by a box, second one is this specific bug I mentioned, that completely broke the mouse even without xinput.

Please download and check the file groovymame64_0164.015h_fix_linux.tar.bz2 from here.


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 #46 on: September 06, 2015, 06:30:04 am »
Nobody tested this?
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

secretv

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:May 19, 2021, 11:27:49 pm
  • I want to build my own arcade controls!
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #47 on: September 08, 2015, 08:36:58 pm »
First off I want to say a heartfelt thank you to you Calamity. Secondly I've tested the file you provided with my GroovyArcade. Prior to installing your file my trackball mouse did not work and now it does. Hooray!

Manta

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:November 30, 2019, 12:30:57 pm
  • I want to build my own arcade controls!
Re: Mouse movement being bounded by box (trackball, etc)
« Reply #48 on: September 28, 2015, 06:17:33 pm »
Thank you to both of you. The mouse does work now! Sorry it took me a while to get back here and check the thread.

-M


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 #49 on: December 10, 2015, 06:40:00 am »
Hey guys thanks so much for getting this sorted. I've not had chance to test this myself as I'm just finding the time to rebuild my cabinet but I'm sure it does work.

 :applaud:  :applaud:  :applaud:

Quick question to either Calamity or VES, if this is working as the guys have stated does that mean this fix is Incorporated into all new releases on linux or just the one that is linked. I presume its in all the new ones?

The reason I ask is as part of the new build I was going to use the latest groovymame version I think 168 but need to be sure that this contains the fix mentioned above.

Look forward to hearing back from you guys,

Many thanks

Strontium

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 04:48:51 pm
  • 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 #50 on: January 21, 2016, 12:49:19 pm »
 :cheers:

Thanks so much for the fix, I plan on integrating it this weekend.  Have been so busy hadn't seen this had been addressed such a while ago.

~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 04:48:51 pm
  • 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 #51 on: January 22, 2016, 11:01:07 am »
Couldn't wait until the weekend so I tried it out last night.  Unfortunately, it is built against a newer c library (glibc) so it will not run for me.  I'll have to either upgrade my OS, or try and spin a build myself.
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 04:48:51 pm
  • 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 #52 on: February 09, 2016, 02:35:21 pm »
I'm going to try building a version first, but I noticed that the binaries were built on August 29th, but the source code didn't change.  Was the issue a build related on?  I guess I'd like to know what the issue was so I can make sure when I build I have it in there.

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 #53 on: February 09, 2016, 04:42:37 pm »
The relevant change was added to Switchres 0.015i (check the changelog).
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 04:48:51 pm
  • 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 #54 on: February 18, 2016, 04:16:36 pm »
The relevant change was added to Switchres 0.015i (check the changelog).

Thanks Calamity,

I took a shot at upgrading the Arch Linux install and have spent the past few nights trying to get it up and going (first grub was hosed, then initrd, the list goes on and on).

At this point I'll probably do a re-install which means re-doing things and what I'm wondering is, can I run GroovyMame on a different distribution, like Ubuntu or Debian (which I'm MUCH more familiar with)?
Is there a tweaked kernel or x-server, or can I just drop the groovymame binary on any distro and it will work?

~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 #55 on: February 18, 2016, 04:38:44 pm »
Hi telengard,

You'll need patched radeon drivers for low resolution modes to work. Probably Doozer can give you some hint.
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 04:48:51 pm
  • 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 #56 on: February 18, 2016, 04:59:07 pm »
Hi telengard,

You'll need patched radeon drivers for low resolution modes to work. Probably Doozer can give you some hint.

I have an ArcadeVGA so I /think/ that won't be an issue, but I don't know enough to be sure.  Should I PM Doozer?

thanks for the help Calamity, I'll eventually get this going...
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 #57 on: February 18, 2016, 05:01:58 pm »
ArcadeVGA is like any other card under Linux.
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 04:48:51 pm
  • 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 #58 on: February 18, 2016, 05:24:52 pm »
ArcadeVGA is like any other card under Linux.

Ok, I guess I'll PM Doozer.

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

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 #59 on: February 19, 2016, 03:29:36 am »
ArcadeVGA is like any other card under Linux.

Ok, I guess I'll PM Doozer.

thanks

The arcadevga cards will behave like vanilla ATI cards. Nothing special to do on that site under Linux.

@telengard, just to copy the answer I have PMed you. You just need to patch your kernel (for 15kHz) and take the latest binary from the google drive.

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:Today at 04:48:51 pm
  • 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 #60 on: March 08, 2016, 02:30:27 pm »
ArcadeVGA is like any other card under Linux.

Ok, I guess I'll PM Doozer.

thanks

The arcadevga cards will behave like vanilla ATI cards. Nothing special to do on that site under Linux.

@telengard, just to copy the answer I have PMed you. You just need to patch your kernel (for 15kHz) and take the latest binary from the google drive.

Thanks Doozer,

I ended up just upgrading the GroovyArcade install, but putting my /home/roms and /home/arcade on a separate partition so I don't have to go through the migration of all my settings/files again.  I just symlink to the other partition and it works perfectly.  I was considering switching to Debian but trying to figure out the patches to apply, etc.  I just don't have the time.  I want to play games on it.   :)

I dropped in the fixed groovymame and will test out the trackball soon and report back.

thanks everyone for their persistence and help on this, I truly appreciate it!

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

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 #61 on: March 09, 2016, 03:39:18 am »
thanks everyone for their persistence and help on this, I truly appreciate it!

~telengard

Enjoy your new setup Telengard ;-) If you face any trouble, just drop a post here.