-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathCharacterEventArgs.cs
36 lines (26 loc) · 1.01 KB
/
CharacterEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Decompiled with JetBrains decompiler
// Type: StardewValley.CharacterEventArgs
// Assembly: Stardew Valley, Version=1.5.6.22018, Culture=neutral, PublicKeyToken=null
// MVID: BEBB6D18-4941-4529-AC12-B54F0C61CC20
// Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Stardew Valley.dll
using System;
namespace StardewValley
{
public class CharacterEventArgs : EventArgs
{
private readonly char character;
private readonly int lParam;
public CharacterEventArgs(char character, int lParam)
{
this.character = character;
this.lParam = lParam;
}
public char Character => this.character;
public int Param => this.lParam;
public int RepeatCount => this.lParam & (int) ushort.MaxValue;
public bool ExtendedKey => (this.lParam & 16777216) > 0;
public bool AltPressed => (this.lParam & 536870912) > 0;
public bool PreviousState => (this.lParam & 1073741824) > 0;
public bool TransitionState => (this.lParam & int.MinValue) > 0;
}
}