hidtest

HID-Test

Magyar Magyar

What's this:

This is a program collection for testing the keyboard and joystick of some old machines. Their use is quite similar: query the keyboard and joysticks according to the specifics of the different machines and mark the active / not active but once certainly active keys and joystick directions on the screen.

Machine types that are currently available: (In order of completion)


Enterprise 64/128:

The test consists of three different screens, You can switch between them by pressing the RESET button. The same query algorithm is running on each screen, only the diplayed layout is different:

EP-HIDtestScreen1
First screen: "UK" (English) keyboard layout

EP-HIDtestScreen2
Second screen: "BRD" (German) keyboard layout

EP-HIDtestScreen3
Third screen: "UK" (English) keyboard layout, matrix view

The Enterprise's keyboard and joysticks are organized in a 11 columns × 10 rows matrix, this layout appears on the third screen. The background of the key / joy direction that is currently active will change to red. If a key / joy direction is not active, but once it was certainly active, the corresponding background will be green. The row select in the computer is 4 bit, which means 16 different variations, but only the first 10 is used. The remaining 6 rows are also queried, so if any extension is implemented then the result appears on the first and second screens.

The test load/start is also possible without a keyboard, but in this case an ExDOS device of any kind is required. For autostart, copy the testprogram and exdos.ini file to the floppy disk's root direcory. Insert this floppy to the EP's drive and press RESET button. The ExDOS loads and runs the testprogram automatically.

The required files are:

Older version:


Commodore 264 series (C16, C116, plus/4, 16K, 32K, 64K, PAL/NTSC):

The test consists of 3-plus-1 different screens, You can switch between them by pressing the RESET button. The first and second screen use a different query algorithm, and the third screen uses a different layout:

C264-HIDtestScreen1
First screen: traditional query, like the one that the KERNAL does

C264-HIDtestScreen2
Second screen: separated / isolated query, the joystick does not generate any key action

C264-HIDtestScreen3
Third screen: separated / isolated query, full matrix view

The C16's, C116's, plus/4's keyboard + joystick is managed by a 8 columns × 16 rows matrix, but the joysticks uses only 2 rows from the existing 8. This layout appears on the third screen. If unused rows are implemented by any extension than the result would appear on the third screen. The background of the active key / joy direction will turn to red. The ones that are not active, but once they were definitely active, will be green. The program will also display the state of the Datasette button.

C264-HIDtestScreen4
Fourth (plus-1) screen: special Joystick query

This test created for testing the classic "Joy-failed TED" joysticks. More information on this can be found in this forum thread.

The test load/start is also possible without a keyboard; the program can be started from an EPROM. Insert the burned 16KB EPROM to the BASIC, FUNCTION-LO, C1LO or C2LO ROM-BANK. After power on, the test program will be copied from ROM to RAM and it will start automatically.

The required files are:

Older version:


Commodore VIC-20 (unexpanded, +3K, +8K, PAL/NTSC):

The test consists of one screen:

VIC20-HIDtestScreen1
Traditional query, like the one that the KERNAL does

The VIC-20's keyboard is mapped in a 8 columns × 8 rows matrix. The joy is outside of this matrix, the lines are connected directly except the right direction. This line is connected to the keyboard row 7. output. (!) To check this direction, change this line from output to input for the reading interval. The active right direction might wreck the reading of keyboard matrix! The background of the active key / joy direction will turn to red. The ones that are not active, but once they were definitely active, will be green. The program displays the value of the connected paddles and Light-Pen positions as well. The program will also display the status of the Datasette button.

The test program works on unexpanded computer, or with +3K, +8K (or more) RAM installed. Always load the program to the actual BASIC start address! (Use the LOAD "hidtest",8 command, do not use the ,1 extension!)
The test load/start is possible without a keyboard; the program can be started from an 4 or 8 KB capacity EPROM. There are two ways of usage:

After power on the test program will be copied from ROM to RAM and it starts automatically.

The required files are:


Back