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 Hack (Wheel Spinner)  (Read 3111 times)

0 Members and 1 Guest are viewing this topic.

PoDunkMoFo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 378
  • Last login:January 09, 2025, 07:20:35 pm
  • If we weren't all crazy we would go insane... JB
    • Visual Horizons
Mouse Hack (Wheel Spinner)
« on: January 16, 2003, 11:59:14 pm »
Does mame support mouse wheel.

I noticed that mouse wheels use optical encoders just like the x and y.  Hacking a mouse with a scroll wheel would allow you to use 1 trackball and 1 spinner or 3 steering wheels.  Anyone want to weigh in on this.

Also how about mounting an optical mouse right under your trackball, seems like it would be a simple solution.

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:Mouse Hack (Wheel Spinner)
« Reply #1 on: January 17, 2003, 12:13:13 am »
Does mame support mouse wheel.
no
quote author=PoDunkMoFo link=board=1;threadid=4432;start=0#28019 date=1042779554]
Also how about mounting an optical mouse right under your trackball, seems like it would be a simple solution.
[/quote
Huh? Please explain
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

cdbrown

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1241
  • Last login:October 16, 2017, 09:52:03 pm
  • Bowowow
Re:Mouse Hack (Wheel Spinner)
« Reply #2 on: January 17, 2003, 12:24:32 am »
I think he has the optical part of the mouse "looking" at the trackball, so as you spin the trackball the mouse see's that it's moving and registers the movement.  Just like if you hold the mouse upside down and rub your finger across it, it see's something moving so it thinks it is moving and that's what is registered.

I think this was discussed a while back and someone came up with why it wouldn't work properly.  But if you can get it to work then I'm all ears.

Cheers
-cdbrown

PoDunkMoFo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 378
  • Last login:January 09, 2025, 07:20:35 pm
  • If we weren't all crazy we would go insane... JB
    • Visual Horizons
Re:Mouse Hack (Wheel Spinner)
« Reply #3 on: January 17, 2003, 12:35:48 am »
So does anyone know if there are plans to support the mouse wheel?

I was refering to mounting an optical mouse upside down just next to the trackball.  Of course you would have to invert x y directions but I see no reason why it would not work.

OSCAR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1770
  • Last login:September 06, 2018, 11:31:53 pm
  • I think Bigfoot is blurry, that's the problem...
    • Oscar Controls
Re:Mouse Hack (Wheel Spinner)
« Reply #4 on: January 17, 2003, 12:53:23 am »
u_rebel (www.urebelscum.speedhost.com) is the real guru when it comes to mice & MAME, but as far as I know there are no plans to integrate mouse scroll wheel support into MAME.  But plans can change....


Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:Mouse Hack (Wheel Spinner)
« Reply #5 on: January 17, 2003, 06:25:48 am »
The 'button' function of the wheel works for me, but not the scrolling part.

If you want 3 axis, why not just hack 2 mice - 1 PS/2 and 1 USB, or 2 USB??

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Mouse Hack (Wheel Spinner)
« Reply #6 on: January 17, 2003, 07:20:19 am »
So does anyone know if there are plans to support the mouse wheel?

I'll look into adding it to Mame:Analog+.  The standard mame won't add it until it can re-assign any mouse axis to any game axis (like you can buttons), and mame can't do that with mouse axis yet.  Analog+ can assign the axis, so it shouldn't be too hard to add, I hope. :-X (opps, opened my big mouth, didn't I?)

One thing about the mouse wheel; it is usually much coarser resolution than the normal X & Y axis, and the mouse driver often sets it so one turn-snap equals about 10-25 "pixels" on the X or Y axis.  The smooth spinning mouse wheels might be not as coarse; I haven't tested the output of one (ie, I don't have one).

Quote
I was refering to mounting an optical mouse upside down just next to the trackball.  Of course you would have to invert x y directions but I see no reason why it would not work.

It was talked about before.  IIRC, two people tried it and neither got it to work:  It was hard to place the ball so it was the right distance and angle from the optical sensors on the mice test.  The sensors are designed to work the distance the mouse positions it above the table, parallel to the bottom of the mouse on a (mostly) flat surface.  Also, most trackballs are too smooth & shiny for most optical mice to read off of.  But the newer optical generations are getting better, so you could try it.  Beware you were warned that others tried and gave up.

However, if you get it working, please post what you did. :D
Robin
Knowledge is Power

Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:Mouse Hack (Wheel Spinner)
« Reply #7 on: January 17, 2003, 07:32:50 am »
You want to place this under a trackball? It that so you can scroll through the game lists of your frontend?

You can use your trackball (or joystick) to scroll through the gamelists on Game Launcher.

It sounds like you want the wheel functionality anyways but if scrolling game lists was all you wanted, GL can do it.
If you build a frankenpanel, chances are I don't care for you as a person.

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:Mouse Hack (Wheel Spinner)
« Reply #8 on: January 17, 2003, 10:13:48 am »
You want to place this under a trackball? It that so you can scroll through the game lists of your frontend?
He wants the optical mouse to read the trackball. IE no hacking just mount the optical  mouse under the trackball and have it read the ball movement. Most optical mouse won't work on a smooth surface. Every optical trackball I've seen uses a grid pattern on the ball.

You can use your trackball (or joystick) to scroll through the gamelists on Game Launcher.

It sounds like you want the wheel functionality anyways but if scrolling game lists was all you wanted, GL can do it.
He wants the scroll wheel as a third axis in mame, he's looking to get 3 steering wheels off one mouse.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:Mouse Hack (Wheel Spinner)
« Reply #9 on: January 17, 2003, 10:27:15 am »
Hmm, its clear enough now. I must have been sleeping this morning.
If you build a frankenpanel, chances are I don't care for you as a person.

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:Mouse Hack (Wheel Spinner)
« Reply #10 on: January 17, 2003, 01:57:47 pm »
One thing about the mouse wheel; it is usually much coarser resolution than the normal X & Y axis, and the mouse driver often sets it so one turn-snap equals about 10-25 "pixels" on the X or Y axis.
I wonder if you could use this for a Mechanical rotary stick hack... Nah, LS30's are $15, its not worth it.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

rampy

  • *shrug*
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2910
  • Last login:March 02, 2007, 11:32:16 am
  • ...as useless as a JPG is to Helen Keller
    • Build Your Own PVR
Re:Mouse Hack (Wheel Spinner)
« Reply #11 on: January 17, 2003, 02:32:05 pm »
One thing about the mouse wheel; it is usually much coarser resolution than the normal X & Y axis, and the mouse driver often sets it so one turn-snap equals about 10-25 "pixels" on the X or Y axis.
I wonder if you could use this for a Mechanical rotary stick hack... Nah, LS30's are $15, its not worth it.

You know.. I have thought of doing that before.  It's not a bad idea at all... assuming 3rd axis is goes unsupported in mame, you could take the optics/etc out  and wire them to a regular X or Y axis ... the trick, as per usual is how to cleanly/efficiently/ruggedly fasten it to the bottom of a super/etc.

*shrug*

rampy