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: New Keyboard Test Utility (for use with MAME and Pinball)  (Read 14075 times)

0 Members and 1 Guest are viewing this topic.

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
New Keyboard Test Utility (for use with MAME and Pinball)
« on: April 21, 2013, 02:31:24 pm »
I made a keyboard test utility which will echo input keys to a virtual on-screen keyboard.   The utility was developed for use with KADE for testing inputs from a keyboard encoder but can be used as a general purpose keyboard tester.

Currently the utility has UK and US visual keyboards available and you can select your preferred keyboard layout from a dropdown selection.
The keyboard will stay on top of your other sessions and will continue to record keyboard input even when not in focus.



There is a detailed view of activity available by clicking on the "Show Activity Log" button (or by pulling the bottom edge of the window down).  All inputs are displayed in a list and extensive information about keys is reported including key code, ASCII code and scan code values.
To assist those that are setting up encoders for use with MAME and Pinball,  I have also included the default functions that are assigned to key presses.
Currently pressed keys are highlighted in green.



A beta version of this tool is available to download from here.  Please try it out and it would be great to get your feedback.  Currently this is built for Windows only but could be made to work on Linux and Mac.
You need to extract the zip contents to a folder and run the keytest.exe program.
If folks find this utility useful then I will consider making an install wizard for Windows and working on Linux and Mac versions.

The software is developed in Python and sources are available at:
https://github.com/kadevice/KADE/tree/master/open%20software/utilities/keyboard%20tester/sources
Information on working with KADE sources at: http://kadevice.com/forum/viewforum.php?f=22

Please try it out.
« Last Edit: July 12, 2013, 10:01:34 am by degenatrons »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:Yesterday at 12:43:52 pm
  • ...
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #1 on: April 21, 2013, 08:11:17 pm »
Sweet.  Thanks for sharing it here.
Kudos on showing all keys pressed simultaneously.
This will be useful for testing when and if your joystick is hitting the corners.
It might also show if a usb keyboard encoder is maxing out at a certain number of simultaneous presses.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #2 on: April 22, 2013, 01:41:15 am »
Thanks for the new keyboard test.  Will be checking it out in the next few days setting up a new cab.

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #3 on: April 22, 2013, 04:04:42 am »
Sweet.  Thanks for sharing it here.
Kudos on showing all keys pressed simultaneously.
This will be useful for testing when and if your joystick is hitting the corners.
It might also show if a usb keyboard encoder is maxing out at a certain number of simultaneous presses.
Thanks.  Have used it myself to test corners on my sticks (had some trouble with a Happ Competition Pro) and to verify 20 simultaneous inputs from the KADE encoder.

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #4 on: April 22, 2013, 04:08:09 am »
Thanks for the new keyboard test.  Will be checking it out in the next few days setting up a new cab.

Great.  I hope you find it useful.   Any issues let me know.

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #5 on: May 06, 2013, 06:06:29 pm »
I made some improvements to the Keyboard Input Tester Utility.  It can now speak the keys and functions - which means you don't need to keep glancing across at the screen when testing or working on controls.

Latest beta version is available to download from:
http://kadevice.com/loader/utils/keyboard_tester_v0_1_0_6.zip

In this short video,  I program the KADE miniArcade as a MAME/Keyboard encoder and test the joystick (Seimitsu LS58) and 6 pushbuttons with the Keyboard Input Tester Utility.  The Tester Utility show the keys which are input and announces the corresponding MAME functions.



I made a simple arcade stick to help me test the controls.  Some pics below.































Note that the ground wire on the Seimitsu Joystick is orange (not black). 
« Last Edit: May 06, 2013, 06:08:00 pm by degenatrons »

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: New Keyboard Test Utility (for use with MAME and Pinball)
« Reply #6 on: April 08, 2014, 03:49:12 am »
Version 0.1.0.8 of Keyboard Tester is released with some minor changes.

http://kadevice.com/loader/utils/keyboard_tester_v0_1_0_8.zip
You need to extract the zip contents to a folder and run the keytest.exe program.

Change notes:
v0.1.0.8 - 07/04/2014
  MAME key mappings changed for P3 direction keys - to prevent conflict with P2.
  Show activity log by default when program starts.