Skip to content

Commit

Permalink
Added "Two" keystroke (usables)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed Nov 10, 2022
1 parent 1a82c5e commit ed8efa9
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 @@ -19,5 +19,6 @@
<Button x:Name="SKeystroke" Content="S" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="40" Margin="69,80,0,0" FontSize="20"/>
<Button x:Name="DKeystroke" Content="D" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="40" Margin="109,80,0,0" FontSize="20"/>
<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"/>
</Grid>
</Window>
6 changes: 6 additions & 0 deletions EvadeKeystrokes.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ private void OnKeyDown(object sender, KeyEventArgs e)
case Keys.D1:
ActivateButton(OneKeystroke);
break;
case Keys.D2:
ActivateButton(TwoKeystroke);
break;
}
}

Expand All @@ -86,6 +89,9 @@ private void OnKeyUp(object sender, KeyEventArgs e)
case Keys.D1:
DeactivateButton(OneKeystroke);
break;
case Keys.D2:
DeactivateButton(TwoKeystroke);
break;
}
}

Expand Down

0 comments on commit ed8efa9

Please sign in to comment.