An open API service indexing awesome lists of open source software.

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

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
![Screenshot](assets/images/ss-normal.png)

#### Compact mode
![Screenshot](assets/images/ss-compact.png)