https://github.com/inflex/keyboard-tester
Hardware keyboard testing for Macbook Repairers and other similar people
https://github.com/inflex/keyboard-tester
Last synced: about 1 year ago
JSON representation
Hardware keyboard testing for Macbook Repairers and other similar people
- Host: GitHub
- URL: https://github.com/inflex/keyboard-tester
- Owner: inflex
- License: bsd-3-clause
- Created: 2020-05-28T14:38:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T03:00:58.000Z (about 2 years ago)
- Last Synced: 2025-03-29T05:12:15.602Z (about 1 year ago)
- Language: C
- Size: 541 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keyboard-tester, for linux & macOS
Written so I could test macbook keyboards before sending back to clients after a board repair or similar service.
Works on keyboard scancodes, not keycodes, so will work with all keyboards but you'll be left with varying levels of keys that aren't "pressed".
#### BETA DEVELOPMENT --- Seems to be okay to use now
### Prerequisites
Requires SDL2 and SDL2_ttf
linux
```
apt install libsdl2-dev
```
macOS
```
brew install libsdl2 libsd2_ttf
```
### Build
```make```
### Parameters
```
keyboard-tester [--dl ] [--dh ] [-m ] [-c] [--dpi ] [--fs ] [-d]
--dl
--kwidth : Width of key in pixels
--kheight : Height of key in pixels
--kspacing : Gap between keys in pixels
--columns : How many columns of keys to show
--compact : Remove null/empty keys from grid display
--colbg : background
--colkey : key block
--coltext : key text
--colpressed : key block colour while pressed
--colreport : after-pressed report text (normal)
--colflagged : after-pressed report text (flagged)
--dpi : Force screen DPI
--fs : Set font size in pts
--fscale : Scale the key text rather than cropping
-d : Enable debugging output
ALT/OPT-Q: exit/quit
ALT/OPT-M: Save current pressed keyset to mapfile
```
### Application Controls
```
alt-q / opt-q : quit
alt-m / opt-m : Save currently pressed keys array to map file
```
### Screenshots
#### Default mode

#### Compact mode
