主题
GameUI.TriggerEvent
EventGameInput 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public abstract class EventGameInput : ITriggerEvent<EventGameInput>构造函数
EventGameInput 仅客户端
csharp
protected EventGameInput()属性
Modifiers 仅客户端
csharp
public required GameCore.Platform.Urho.VirtualKeyModifiers Modifiers { get; init; }The virtual key modifiers, such as Shift, Ctrl, or Alt, that were pressed when the event occurred.
PointerButtons 仅客户端
csharp
public required PointerButtons PointerButtons { get; init; }The pointer buttons that were pressed when the event occurred. For mouse events, this indicates which mouse buttons were pressed. For finger events, differentiate between fingers by using the touching ID.
EventGameKey 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public abstract class EventGameKey : EventGameInput构造函数
EventGameKey 仅客户端
csharp
protected EventGameKey()属性
Key 仅客户端
csharp
public required VirtualKey Key { get; init; }The virtual key that triggered the event.
EventGameKeyDown 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGameKeyDown : EventGameKey, ITriggerEvent<EventGameKeyDown>构造函数
EventGameKeyDown 仅客户端
csharp
public EventGameKeyDown()EventGameKeyDown 仅客户端
csharp
public EventGameKeyDown(VirtualKey key, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons, bool isRepeat)属性
IsRepeat 仅客户端
csharp
public required bool IsRepeat { get; init; }Indicates whether the event was triggered by a key long press.
EventGameKeyUp 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGameKeyUp : EventGameKey, ITriggerEvent<EventGameKeyUp>构造函数
EventGameKeyUp 仅客户端
csharp
public EventGameKeyUp()EventGameKeyUp 仅客户端
csharp
public EventGameKeyUp(VirtualKey key, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons)EventGamePointerButton 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public abstract class EventGamePointerButton : EventGameInput构造函数
EventGamePointerButton 仅客户端
csharp
protected EventGamePointerButton()属性
EventPointerButton 仅客户端
csharp
public required PointerButtons EventPointerButton { get; init; }The pointer button that triggered the event.
PointerPosition 仅客户端
csharp
public UIPosition? PointerPosition { get; }EventGamePointerButtonDown 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGamePointerButtonDown : EventGamePointerButton, ITriggerEvent<EventGamePointerButtonDown>构造函数
EventGamePointerButtonDown 仅客户端
csharp
public EventGamePointerButtonDown()EventGamePointerButtonDown 仅客户端
csharp
public EventGamePointerButtonDown(PointerButtons eventPointerButton, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons)EventGamePointerButtonMove 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGamePointerButtonMove : EventGamePointerButton, ITriggerEvent<EventGamePointerButtonMove>构造函数
EventGamePointerButtonMove 仅客户端
csharp
public EventGamePointerButtonMove()EventGamePointerButtonMove 仅客户端
csharp
public EventGamePointerButtonMove(PointerButtons eventPointerButton, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons)EventGamePointerButtonUp 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGamePointerButtonUp : EventGamePointerButton, ITriggerEvent<EventGamePointerButtonUp>构造函数
EventGamePointerButtonUp 仅客户端
csharp
public EventGamePointerButtonUp()EventGamePointerButtonUp 仅客户端
csharp
public EventGamePointerButtonUp(PointerButtons eventPointerButton, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons)EventGamePointerWheelChanged 仅客户端
命名空间 GameUI.TriggerEvent
csharp
public class EventGamePointerWheelChanged : EventGameInput, ITriggerEvent<EventGamePointerWheelChanged>构造函数
EventGamePointerWheelChanged 仅客户端
csharp
public EventGamePointerWheelChanged()EventGamePointerWheelChanged 仅客户端
csharp
public EventGamePointerWheelChanged(int amount, GameCore.Platform.Urho.VirtualKeyModifiers modifiers, PointerButtons pointerButtons)属性
Amount 仅客户端
csharp
public required int Amount { get; init; }The changed amount of the wheel.