Table of Contents

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

IDeviceEvents

Drag

Gets the listener for the drag and drop events.

IDragEvents Drag { get; }

Property Value

IDragEvents

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

IGestureEvents

Navigation

Gets the listener for the navigation events.

INavigationEvents Navigation { get; }

Property Value

INavigationEvents

Scroll

Gets the listener for the scroll events.

IScrollEvents Scroll { get; }

Property Value

IScrollEvents

Text

Gets the listener for the text input events.

ITextEvents Text { get; }

Property Value

ITextEvents

Touch

Gets the listener for the touch events.

ITouchEvents Touch { get; }

Property Value

ITouchEvents

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

command ICommand

Command instance to register.

gesture KeyGesture

Keys combination to trigger the command.

argument object

Argument to pass to the command when the gesture is pressed.

handlesGesture bool

true 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

gesture KeyGesture

Keyboard 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

command ICommand

The command to remove.

gesture KeyGesture

The key combination it was registered for.