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: Spinner as 2-way?  (Read 1151 times)

0 Members and 1 Guest are viewing this topic.

ericball

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 220
  • Last login:March 13, 2025, 11:01:47 am
Spinner as 2-way?
« on: January 20, 2005, 03:29:30 pm »
Does anyone know of any way (hardware or software) to use a spinner as a 2-way joystick (or 2 buttons) in MAME?
MAME Projects % completed:
2004 3 sided cocktail cabinet w/ modular CP <25% (discarded)
2004 Tempest cabinet & CP > 75% (sold)
2017 Raspberry Pi Zero W w/ Lakka microconsole 50%
2021 Vertical Bartop - in progress > 80%, 100% functional (sleeping)

pointdablame

  • I think Drew is behind this conspiracy...
  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5034
  • Last login:August 04, 2025, 06:16:22 pm
  • Saint and Woogie let me back in!
Re: Spinner as 2-way?
« Reply #1 on: January 20, 2005, 03:49:10 pm »
spinners mimic a mouse axis, not a button press, so I wouldn't think it would be possible to do.  I've never personally heard of software or hardware that can map a mouse movement to a button press, but if it exists, someone on this board probably knows about it ;)
first off your and idiot

Man I love the internet, haha.

moonpatrol 4 lyfe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:May 08, 2011, 04:32:18 pm
  • I want to build my own arcade controls!
Re: Spinner as 2-way?
« Reply #2 on: January 20, 2005, 03:53:37 pm »
Hit TAB while in the game.  Select Player 1 left, hit enter.  Then spin your spinner to the left.  Then select Player 2 left, hit enter.  THen spin your spinner to the right.

Not sure if this will work, but give it a shot.

Bill

pointdablame

  • I think Drew is behind this conspiracy...
  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5034
  • Last login:August 04, 2025, 06:16:22 pm
  • Saint and Woogie let me back in!
Re: Spinner as 2-way?
« Reply #3 on: January 20, 2005, 07:03:06 pm »
Hit TAB while in the game.  Select Player 1 left, hit enter.  Then spin your spinner to the left.  Then select Player 2 left, hit enter.  THen spin your spinner to the right.

Not sure if this will work, but give it a shot.

Bill

That won't work. You need to find a way to set a mouse axis up as a button.  If you select say Player 1 left and move your mouse left (essentially what the spinner is doing), MAME won't register anything.

It's definitely harder than that.  I'm still not quite sure it's even possible.
first off your and idiot

Man I love the internet, haha.

ericball

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 220
  • Last login:March 13, 2025, 11:01:47 am
Re: Spinner as 2-way?
« Reply #4 on: January 20, 2005, 08:24:25 pm »
MAME Projects % completed:
2004 3 sided cocktail cabinet w/ modular CP <25% (discarded)
2004 Tempest cabinet & CP > 75% (sold)
2017 Raspberry Pi Zero W w/ Lakka microconsole 50%
2021 Vertical Bartop - in progress > 80%, 100% functional (sleeping)

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Spinner as 2-way?
« Reply #5 on: January 20, 2005, 10:38:20 pm »
What is the GOAL here?
Is there a certain game you want to play, etc...?

I don't see any advantage to using a spinner as a two-way.
The advantage that spinners have over a two-way is that they can compute distance, as well as direction.
I can't think of any games that came stock with a two-way, that will accept input from a spinner though.

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: Spinner as 2-way?
« Reply #6 on: January 20, 2005, 11:26:10 pm »
Hit TAB while in the game.  Select Player 1 left, hit enter.  Then spin your spinner to the left.  Then select Player 2 left, hit enter.  THen spin your spinner to the right.
As pointdablame says, that doesn't work (at least not in MAME32 0.84u1).

Does not work for any mame.  Only works for mice with the analog input of analog ports in mame versions after ~0.85.

Quote
If I tap the optic sensors, I can (theoretically) decode the signal into left & right clicks (with each click being a transistion). 

Easy to translate:

 00 <-> 01 <-> 11 <-> 10 <-> 00 (repeat)
^^
| \ - Sensor 1
|
\--- Sensor 2

Only "hitch" is sometimes going left in above sequence is spinning left, sometimes going right in above is spinning left.  But mame can handle that.

Quote
I can see three ways to transform those clicks into button/key presses:
1. Each click is a press, possibly with an RC delay.
2. Extending that, as long as the spinner goes in the same direction above a certain rate the button is held down.
3. More of a positional.  So if you spin 10 degrees right, the right button is held down.  This could be done using up/down counters.

This is the hard part. ;)


But I agree with NoOne: Spinners convey much more info than left/right.  Finding the "best" way to lose that info will vary from spinner to spinner, and user to user, and game to game.  Just use a joystick in the first place.
Robin
Knowledge is Power

crashwg

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3076
  • Last login:May 24, 2019, 11:01:05 am
Re: Spinner as 2-way?
« Reply #7 on: January 21, 2005, 03:47:45 am »
What is the GOAL here?
Is there a certain game you want to play, etc...?

I can think of one reason somone would want to do such a thing, infact I asked a similar question a while back...

Playing Xybots with optical rotary joy!
If there's bees in the trap I'm catching em
By the thorax and abdomen
And sanding the stingers down to a rough quill
Then I dip em in ink, and I scribble a bit
But if it they wriggle then I tickle em until they hold still
Lemme say it again
In my land of pretend
I use bees as a mf'n pen

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Spinner as 2-way?
« Reply #8 on: January 21, 2005, 06:08:22 am »
In MAMEWAH my inital mouse code handled the mouse 'digitally' - it just registered each direction and didn't use any analog info...

So it is possible to do, but as said (and why I didn't leave my mouse handling like that) you should just use a joystick.

ericball

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 220
  • Last login:March 13, 2025, 11:01:47 am
Re: Spinner as 2-way?
« Reply #9 on: January 21, 2005, 11:33:26 am »
What is the GOAL here?
Is there a certain game you want to play, etc...?
Increase the number of games I can play on my Tempest MAME Cabinet using the original CP.
MAME Projects % completed:
2004 3 sided cocktail cabinet w/ modular CP <25% (discarded)
2004 Tempest cabinet & CP > 75% (sold)
2017 Raspberry Pi Zero W w/ Lakka microconsole 50%
2021 Vertical Bartop - in progress > 80%, 100% functional (sleeping)