Class WebBrowserInputHandler
Abstraction layer for getting input
Namespace: VoltstroStudios.UnityWebBrowser.Input
Assembly: .dll
Syntax
public abstract class WebBrowserInputHandler : ScriptableObject
Methods
| Edit this page View SourceDisableIme()
Called when IME is no longer needed
Declaration
public abstract void DisableIme()
EnableIme(Vector2)
Called when IME needs to be enabled
Declaration
public abstract void EnableIme(Vector2 location)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | location |
GetCursorPos()
Get the current cursor position on the screen as a Vector2
Declaration
public abstract Vector2 GetCursorPos()
Returns
Type | Description |
---|---|
Vector2 |
GetDownKeys()
Get all keys that are down this frame
Declaration
public abstract WindowsKey[] GetDownKeys()
Returns
Type | Description |
---|---|
WindowsKey[] | Returns an array of WindowsKey that are up |
GetFrameInputBuffer()
Gets the input buffer for this frame
Declaration
public abstract string GetFrameInputBuffer()
Returns
Type | Description |
---|---|
string |
GetScroll()
Get the scroll
Declaration
public abstract float GetScroll()
Returns
Type | Description |
---|---|
float |
GetUpKeys()
Get all keys that are up this frame
Declaration
public abstract WindowsKey[] GetUpKeys()
Returns
Type | Description |
---|---|
WindowsKey[] | Returns an array of WindowsKey that are down |
OnStart()
Called when inputs are started
Declaration
public abstract void OnStart()
OnStop()
Called when inputs are stopped
Declaration
public abstract void OnStop()