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: stair-stepping with joystick using a keyboard encoder  (Read 849 times)

0 Members and 1 Guest are viewing this topic.

Rhetro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 78
  • Last login:July 31, 2021, 02:22:15 pm
  • ...Nothing like Green Monochrome.
stair-stepping with joystick using a keyboard encoder
« on: October 30, 2004, 12:43:06 pm »
Hello.

I was wondering if there was anyway to create a joystick deadzone with a keyboard encoder in Mame32.

When using the joystick (a tron/gorf type) I get stair-stepping in the diagonals if it isn't totally aligned with a cardinal point (N,S,E,W).

Since I'm using micro switches in the joystick so if there is no fix I'm guessing the problem is purely mechanical.

However. I was wondering if Mame32 had something I could do to help if not fix the situation. I don't know. Something to make the joystick less sensitive.

Again, this is NOT and analog joystick. It runs of the Happ keyboard encoder.

Thanks in advance!

Crazy Cooter

  • Senator Cooter was heard today telling the entire congressional body to STFU...
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2041
  • Last login:June 05, 2025, 12:39:19 pm
Re:stair-stepping with joystick using a keyboard encoder
« Reply #1 on: October 30, 2004, 04:52:57 pm »
Use a 4-way joystick.  :)

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:stair-stepping with joystick using a keyboard encoder
« Reply #2 on: October 30, 2004, 05:55:37 pm »
If you are getting stair-stepping, it sounds like you are already using a 4-way since it is only registering 1 direction at a time.  Many Happ joysticks have an actuator that will flip over, make sure the large end is towards the base of the joystick.  A true 8-way joystick will not stair-step diagonals, it will register both directions at the same time.




RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re:stair-stepping with joystick using a keyboard encoder
« Reply #3 on: October 31, 2004, 01:37:36 pm »
Nah OSCAR, the stair stepping is not the joystick's fault, it's the game he's playing. What's happening is that the joy is held in a diagonal, which activates two switches. The game, which is suppose to use a 4-way goes through its input logic, and detects the first switch, so it makes the direction go in that direction, then it detects the second switch, and so it makes the direction go in THAT second direction. It repeats that over and over, so you get a stair-step effect.

The solution is DON'T use an 8-way stick with 4-way games.

Since Rhetro said he's using a microswitch joystick, there's no such thing as "sensitivty". A microswitch is either on or off. What would be interesting is if there were an option to turn off diagonals in MAME. I know some SNES emulators have this option...

NO MORE!!

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:stair-stepping with joystick using a keyboard encoder
« Reply #4 on: October 31, 2004, 03:07:45 pm »
Depends on the actual situation, I guess.

Play Berzerk with a Happ stick in "4-way" mode and try to run in a diagonal.  What you get is a zig-zag run rather than a true diagonal run.  I know because I accidentally had one of my P360's in 4-way and that exact thing was happening to me.  That was what I thought the original poster was referring to.  If not, then your's or the other poster's comments are also valid.