-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMacroAction.cs
More file actions
28 lines (25 loc) · 834 Bytes
/
Copy pathMacroAction.cs
File metadata and controls
28 lines (25 loc) · 834 Bytes
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
namespace MiniMacro
{
public enum MacroActionType
{
KeyDown,
KeyUp,
MouseMove,
MouseDown,
MouseUp,
MouseWheel
}
public class MacroAction
{
public MacroActionType Type { get; set; }
public long Timestamp { get; set; } // мс от начала записи
// Клавиатура
public int VirtualKey { get; set; }
public int ScanCode { get; set; }
// Мышь
public double NormX { get; set; } // 0.0–1.0 от ширины экрана
public double NormY { get; set; } // 0.0–1.0 от высоты экрана
public string? Button { get; set; } // "Left", "Right", "Middle"
public int Delta { get; set; } // для MouseWheel
}
}