Class EventHandler
Register to these event handler to be called when values are being passed from Javascript
Inheritance
System.Object
EventHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Imp.Graphics.Blazor
Assembly: Fusee.Engine.Imp.Graphics.Blazor.dll
Syntax
public static class EventHandler
Fields
OnKeyDown
Called upon keyboard key down
Declaration
public static EventHandler<int> OnKeyDown
Field Value
Type | Description |
---|---|
System.EventHandler<System.Int32> |
OnKeyUp
Called upon keyboard key up
Declaration
public static EventHandler<int> OnKeyUp
Field Value
Type | Description |
---|---|
System.EventHandler<System.Int32> |
OnMouseDown
Called upon mouse down
Declaration
public static EventHandler<int> OnMouseDown
Field Value
Type | Description |
---|---|
System.EventHandler<System.Int32> |
OnMouseMove
Called upon mouse move
Declaration
public static EventHandler<float2> OnMouseMove
Field Value
Type | Description |
---|---|
System.EventHandler<float2> |
OnMouseUp
Called upon mouse up
Declaration
public static EventHandler<int> OnMouseUp
Field Value
Type | Description |
---|---|
System.EventHandler<System.Int32> |
OnMouseWheel
Called upon mouse wheel
Declaration
public static EventHandler<float> OnMouseWheel
Field Value
Type | Description |
---|---|
System.EventHandler<System.Single> |
Methods
KeyDown(Int32)
Called from Javascript
Declaration
public static void KeyDown(int btn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | btn |
KeyUp(Int32)
Called from Javascript
Declaration
public static void KeyUp(int btn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | btn |
MouseDown(Int32)
Called from Javascript
Declaration
public static void MouseDown(int btn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | btn |
MouseMove(Single, Single)
Called from Javascript
Declaration
public static void MouseMove(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y |
MouseUp(Int32)
Called from Javascript
Declaration
public static void MouseUp(int btn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | btn |
TouchCancel(Int32)
Called from Javascript
Declaration
public static void TouchCancel(int args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | args |
TouchEnd(Int32)
Called from Javascript
Declaration
public static void TouchEnd(int args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | args |
TouchMove(Single, Single)
Called from Javascript
Declaration
public static void TouchMove(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y |
TouchStart(Int32)
Called from Javascript
Declaration
public static void TouchStart(int args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | args |
Wheel(Single)
Called from Javascript
Declaration
public static void Wheel(float delta)
Parameters
Type | Name | Description |
---|---|---|
System.Single | delta |