Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Added credits ScanCodes_Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBrainAFK committed Oct 7, 2019
1 parent 8b1f2a3 commit 36857e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ const VirtualKey_Enum = {
OEMClear: 0xFE,
};

/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Edited by BigBrainAFK, 2019
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/

const ScanCodes_Enum = {
None: 0x00, // No key pressed
Err_Ovf: 0x01, // Keyboard Error Roll Over - used for all slots if too many keys are pressed ("Phantom key")
Expand Down

0 comments on commit 36857e5

Please sign in to comment.