Skip to content

Commit

Permalink
Support menu key (#12)
Browse files Browse the repository at this point in the history
* Use Stefan's compact version of OneButton.

* Enable Perixx keyboard; set numlock at power on

* Remove activity LED debug code.

* Move mouse and keyboard initialization state machine to START_RESET after reset.

* Reset mouse PS2 state machine when powering off.

* Pull x16community/main

* Add firmware versioning

* Support menu key

---------

Co-authored-by: jburks <[email protected]>
  • Loading branch information
stefan-b-jakobsson and jburks authored May 31, 2023
1 parent 68bdbfa commit d806d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ps2.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ class PS2KeyboardPort : public PS2Port<clkPin, datPin, size>
return 59;
case 0x27: // Right GUI
return 63;
case 0x2f: // Menu key
return 65;
case 0x69: // End
return 81;
case 0x70: // Insert
Expand Down
5 changes: 3 additions & 2 deletions x16-smc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ void I2C_Process() {
}
if (I2C_Data[0] == 2) { // 1st Byte : Byte 2 - Reset Event(s)
switch (I2C_Data[1]) {
case 0:DoReset(); // 2nd Byte : 0 - Reset button Press
break;
case 0:
DoReset(); // 2nd Byte : 0 - Reset button Press
break;
}
}
if (I2C_Data[0] == 3) { // 1st Byte : Byte 3 - NMI Event(s)
Expand Down

0 comments on commit d806d43

Please sign in to comment.