Interface IInputEventSystem
- Namespace
- Icy.Input
- Assembly
- IcyUI.dll
Represents the core class for the input event sources.
public interface IInputEventSystem : IInputEventProvider, IUpdateableInput, IInitializable
- Inherited Members
- Extension Methods
Properties
Devices
Gets the listener for the input devices' related events.
IDeviceEvents Devices { get; }
Property Value
Drag
Gets the listener for the drag and drop events.
IDragEvents Drag { get; }
Property Value
Gestures
Gets the gestures recognized from touch contacts and mouse buttons. They update before every other event provider, and the touch and drag providers are built on top of them.
IGestureEvents Gestures { get; }
Property Value
Navigation
Gets the listener for the navigation events.
INavigationEvents Navigation { get; }
Property Value
Scroll
Gets the listener for the scroll events.
IScrollEvents Scroll { get; }
Property Value
Text
Gets the listener for the text input events.
ITextEvents Text { get; }
Property Value
Touch
Gets the listener for the touch events.
ITouchEvents Touch { get; }
Property Value
Methods
RegisterCommand(ICommand, KeyGesture, object?, bool)
Registers a command to invoke when the specified key combination is pressed.
void RegisterCommand(ICommand command, KeyGesture gesture, object? argument = null, bool handlesGesture = false)
Parameters
commandICommandCommand instance to register.
gestureKeyGestureKeys combination to trigger the command.
argumentobjectArgument to pass to the command when the gesture is pressed.
handlesGesturebooltrue to let this command take the gesture over: commands registered this way are tried before the others, the most recently registered first, and the first whose CanExecute(object) returns true runs alone. When none of them can execute, every other command for the gesture runs as usual. false (the default) runs the command together with the gesture's other ordinary commands.
UnregisterCommand(KeyGesture)
Unregisters every command bound to the specified key combination.
void UnregisterCommand(KeyGesture gesture)
Parameters
gestureKeyGestureKeyboard combination to remove the commands for.
UnregisterCommand(ICommand, KeyGesture)
Unregisters one command from the specified key combination, leaving the gesture's other commands in place.
void UnregisterCommand(ICommand command, KeyGesture gesture)
Parameters
commandICommandThe command to remove.
gestureKeyGestureThe key combination it was registered for.