Skip to content

Commit

Permalink
Fix 'findkeys' sticking down modifier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltris committed May 15, 2020
1 parent b6105c4 commit fb13bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GK6X/KeyboardDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void SetIdentifyDriverMacros()
{
for (byte i = 0; i < byte.MaxValue; i++)
{
packet.WriteByte(i);
packet.WriteByte(0);
}
packet.WriteByte(0);
WritePacketNoResponse(OpCodes.DriverMacro, (byte)OpCodes_DriverMacro.KeyboardState, packet);
Expand Down
4 changes: 1 addition & 3 deletions GK6X/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ static void Main(string[] args)
Log(string.Empty);
Log("This is used to identify keys. Press keys to see their values. Missing keys will generally show up as '(null)' and they need to be mapped in the data files Data/devuces/YOUR_MODEL_ID/");
Log(string.Empty);
Log("This will enter the 'driver' layer and map all keys to callbacks. This results in modifer keys becoming stuck (LCtrl, RAlt, RShift, etc). While it may be " +
"possible to de-press some of these keys manually, some may become stuck and require a system reboot to clear. It might be best to run this inside a VM. " +
"Do you want to continue? (y/n)");
Log("This will enter the 'driver' layer and map all keys to callbacks. Continue? (y/n)");
Log(string.Empty);
string confirm = Console.ReadLine();
if (!string.IsNullOrEmpty(confirm))
Expand Down

0 comments on commit fb13bca

Please sign in to comment.