C# 클래스 Sharplike.Core.Input.InputSystem

파일 보기 프로젝트 열기: eropple/sharplike 1 사용 예제들

공개 메소드들

메소드 설명
ClearBindings ( ) : void

Clears all current control bindings.

EndCommand ( CommandData command ) : void

Ends a command that was previously started. This will stop the command from being repeat-triggered.

GetMousePosition ( ) : Point

Retrieves the current screen-space mouse position.

HasWindowEvent ( String eventname ) : bool

Tests if the input system has a command for a particular event.

LoadConfiguration ( Stream file ) : void

Load control bindings from an arbitrary stream. If there are already bindings, the new ones will be added. New bindings overwrite old bindings.

LoadConfiguration ( String filename ) : void

Loads control bindings from a specified path.

SaveConfiguration ( Stream file ) : void

Saves the current control bindings to an arbitrary stream.

SaveConfiguration ( String filename ) : void

Saves the current control bindings to a path on the filesystem.

StartCommand ( CommandData command ) : void

Starts a game command. This command will be duplicated as a trigger, and will be re-triggered as a key-repeat until it is ended by a call to EndCommand().

TriggerCommand ( CommandData command ) : void

Performs a one-shot trigger of a given command.

WindowCommand ( String eventname ) : void

Triggers a window event.

비공개 메소드들

메소드 설명
InputSystem ( ) : System

메소드 상세

ClearBindings() 공개 메소드

Clears all current control bindings.
public ClearBindings ( ) : void
리턴 void

EndCommand() 공개 메소드

Ends a command that was previously started. This will stop the command from being repeat-triggered.
public EndCommand ( CommandData command ) : void
command CommandData The name of the command to stop
리턴 void

GetMousePosition() 공개 메소드

Retrieves the current screen-space mouse position.
public GetMousePosition ( ) : Point
리턴 Point

HasWindowEvent() 공개 메소드

Tests if the input system has a command for a particular event.
public HasWindowEvent ( String eventname ) : bool
eventname String The event to test.
리턴 bool

LoadConfiguration() 공개 메소드

Load control bindings from an arbitrary stream. If there are already bindings, the new ones will be added. New bindings overwrite old bindings.
public LoadConfiguration ( Stream file ) : void
file Stream The source of the INI data
리턴 void

LoadConfiguration() 공개 메소드

Loads control bindings from a specified path.
public LoadConfiguration ( String filename ) : void
filename String The path to load from. Note: This does NOT automatically use Game.PathTo()
리턴 void

SaveConfiguration() 공개 메소드

Saves the current control bindings to an arbitrary stream.
public SaveConfiguration ( Stream file ) : void
file Stream The writable stream to save to.
리턴 void

SaveConfiguration() 공개 메소드

Saves the current control bindings to a path on the filesystem.
public SaveConfiguration ( String filename ) : void
filename String The location of the file to write to. NOTE: This does NOT automatically use Game.PathTo()
리턴 void

StartCommand() 공개 메소드

Starts a game command. This command will be duplicated as a trigger, and will be re-triggered as a key-repeat until it is ended by a call to EndCommand().
public StartCommand ( CommandData command ) : void
command CommandData The command to start.
리턴 void

TriggerCommand() 공개 메소드

Performs a one-shot trigger of a given command.
public TriggerCommand ( CommandData command ) : void
command CommandData The command to trigger.
리턴 void

WindowCommand() 공개 메소드

Triggers a window event.
public WindowCommand ( String eventname ) : void
eventname String The name of the window event to trigger.
리턴 void