Skip to content

Commit

Permalink
Reverse keyboard controls
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Aug 4, 2021
1 parent d9050f6 commit 2ce1654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/widgets/game/material/page.dart
Expand Up @@ -173,16 +173,16 @@ class GameMaterialPage extends StatelessWidget {
int offsetX = 0;
switch (event.logicalKey.keyId) {
case 0x100070052: // arrow up
offsetY = -1;
offsetY = 1;
break;
case 0x100070050: // arrow left
offsetX = -1;
offsetX = 1;
break;
case 0x10007004f: // arrow right
offsetX = 1;
offsetX = -1;
break;
case 0x100070051: // arrow down
offsetY = 1;
offsetY = -1;
break;
default:
return;
Expand Down

0 comments on commit 2ce1654

Please sign in to comment.