1
0
mirror of https://github.com/fruit-bat/pico-zxspectrum.git synced 2025-04-19 00:04:01 +03:00

Add a few more HID keys

This commit is contained in:
Phil 2022-10-06 21:33:16 +01:00
parent e7012551e5
commit 59faaaedb1
3 changed files with 12 additions and 2 deletions

View File

@ -313,7 +313,7 @@ Currently there is no toggling on the lock keys (caps/num lock) and the indicato
Due to a great deal of help from [badrianiulian](https://github.com/badrianiulian), here is a suggested audio input circuit:
![image](docs/badrianiulian_audio_1.png)
![image](docs/badrianiulian_audio_1.jpg)
Suggestions to improve this circuit are appreciated and please post them [here](https://github.com/fruit-bat/pico-zxspectrum/issues/46).
@ -532,6 +532,7 @@ tio -m ODELBS /dev/ttyUSB0
[hathach](https://github.com/hathach) for the embeded USB library [TinyUSB](https://github.com/hathach/tinyusb)<br/>
[Lin Ke-Fong](https://github.com/anotherlin) for the [Z80 emulator](https://github.com/anotherlin/z80emu)<br/>
[Pimoroni](https://github.com/pimoroni/pimoroni-pico) for lots of useful libraries</br>
[badrianiulian](https://github.com/badrianiulian) for help testing and design work on the audio circuitry<br/>
## References
[Z80 Test suite](https://github.com/raxoft/z80test)<br/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -66,7 +66,16 @@ ZxSpectrumHidKey KEYS[] = {
{ HID_KEY_B, 1, { {7, 4} }},
{ HID_KEY_BACKSPACE, 2, { {0, 0}, {4, 0} }},
{ HID_KEY_PAUSE, 2, { {0, 0}, {7, 0} }},
{ HID_KEY_COMMA, 2, { {7, 1}, {7, 3} }},
{ HID_KEY_PERIOD, 2, { {7, 1}, {7, 2} }},
{ HID_KEY_SLASH, 2, { {7, 1}, {0, 4} }},
{ HID_KEY_SEMICOLON, 2, { {7, 1}, {5, 1} }},
{ HID_KEY_APOSTROPHE, 2, { {7, 1}, {4, 3} }},
{ HID_KEY_MINUS, 2, { {7, 1}, {6, 3} }},
{ HID_KEY_EQUAL, 2, { {7, 1}, {6, 1} }},
{ HID_KEY_EUROPE_1, 2, { {7, 1}, {3, 2} }},
{ HID_KEY_ARROW_LEFT, 2, { {0, 0}, {3, 4} }},
{ HID_KEY_ARROW_DOWN, 2, { {0, 0}, {4, 4} }},
{ HID_KEY_ARROW_UP, 2, { {0, 0}, {4, 3} }},