Interface IBeatmapInput
Implement this if you want to customize how BeatmapRunner checks for user-input. Remember to call SetInput(IBeatmapInput) before starting the game, for this to actually work.
Namespace: MouseDance.Runtime.Callbacks
Assembly: MouseDance.Runtime.dll
Syntax
public interface IBeatmapInput
Properties
CursorPosition
Called by the BeatmapRunner to get where the mouse position is.
Declaration
Vector2 CursorPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Remarks
The bottom-left of the screen or window is at (0, 0). The top-right of the screen or window is at (Screen.width, Screen.height).
IsPlayerInputDown
Called by the BeatmapRunner to check if the user-input was just pressed this frame.
Declaration
bool IsPlayerInputDown { get; }
Property Value
Type | Description |
---|---|
Boolean | Should return true during the frame that user-input became pressed. |
Remarks
This should only return true during the frame when the button has just been pressed. This should not keep returning true while the button is held down.
IsPlayerInputUp
Called by the BeatmapRunner to check if user-input was just released this frame.
Declaration
bool IsPlayerInputUp { get; }
Property Value
Type | Description |
---|---|
Boolean | Should return true if user-input just released the button this frame. |
Remarks
This should only return true during the frame when the button has been released. This should not keep returning true while the button is released.