Skip to content

Commit

Permalink
Added T keystroke (whistle)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed Nov 10, 2022
1 parent 774a68c commit dd66461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions EvadeKeystrokes.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
<Button x:Name="OneKeystroke" Content="1" HorizontalAlignment="Center" VerticalAlignment="Top" Width="40" Height="40" FontSize="20" Margin="0,80,0,0"/>
<Button x:Name="TwoKeystroke" Content="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="40" FontSize="20" Margin="200,80,0,0"/>
<Button x:Name="RKeystroke" Content="R" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="40" FontSize="20" Margin="29,125,0,0"/>
<Button x:Name="TKeystroke" Content="T" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="40" FontSize="20" Margin="74,125,0,0"/>
</Grid>
</Window>
6 changes: 6 additions & 0 deletions EvadeKeystrokes.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ private void OnKeyDown(object sender, KeyEventArgs e)
case Keys.R:
ActivateButton(RKeystroke);
break;
case Keys.T:
ActivateButton(TKeystroke);
break;
}
}

Expand Down Expand Up @@ -98,6 +101,9 @@ private void OnKeyUp(object sender, KeyEventArgs e)
case Keys.R:
DeactivateButton(RKeystroke);
break;
case Keys.T:
DeactivateButton(TKeystroke);
break;
}
}

Expand Down

0 comments on commit dd66461

Please sign in to comment.