Skip to content

Commit

Permalink
changed keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
akamran2001 committed Jul 8, 2022
1 parent 3a131a3 commit 73444c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,5 @@ MigrationBackup/
.ionide/

*.lnk
*.txt
.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ bool FourFingerSwipe(int distance)
{
Thread.Sleep(5);
var ctrlState = GetAsyncKeyState(17);
var altState = GetAsyncKeyState(18);
var leftArrowState = GetAsyncKeyState(37);
var rightArrowState = GetAsyncKeyState(39);
var winState = GetAsyncKeyState(91);
var upArrowState = GetAsyncKeyState(38);
var downArrowState = GetAsyncKeyState(40);
/*
* * Get Key State https://www.amibroker.com/guide/afl/getasynckeystate.html
*/
if (ctrlState != 0 && altState != 0 && leftArrowState != 0)
if (ctrlState != 0 && winState != 0 && upArrowState != 0)
{
FourFingerSwipe(50);
Thread.Sleep(300);
}
if (ctrlState != 0 && altState != 0 && rightArrowState != 0)
if (ctrlState != 0 && winState != 0 && downArrowState != 0)
{
FourFingerSwipe(-50);
Thread.Sleep(300);
Expand Down

0 comments on commit 73444c8

Please sign in to comment.