Piccolo.NET

PBasicInputEventHandler Class

PBasicInputEventHandler is the standard class in Piccolo that is used to register for mouse and keyboard events on a PNode.

For a list of all members of this type, see PBasicInputEventHandler Members.

System.Object
   PBasicInputEventHandler

public class PBasicInputEventHandler : PInputEventListener

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The events that you get depends on the node that you have registered with. For example you will only get mouse moved events when the mouse is over the node that you have registered with, not when the mouse is over some other node.

There are a couple of ways to use this event handler class. You can extend PBasicInputEventHandler and override the OnEvent methods or you can instantiate a PBasicInputEventHandler and attach a handler method to one of the event delegates.

Note: you can also attach an event handler method directly to an event on a node, but you will lose the ability to implement a filter or add other state to your event handler. See the events in PNode for more details.

Requirements

Namespace: UMD.HCIL.Piccolo.Event

Assembly: UMD.HCIL.Piccolo (in UMD.HCIL.Piccolo.dll)

See Also

PBasicInputEventHandler Members | UMD.HCIL.Piccolo.Event Namespace