Show / Hide Table of Contents

    Class InputGenerator

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview
    Privilege Level:
    public
    Privilege:
    http://tizen.org/privilege/inputgenerator

    InputGenerator provides functions to initialize/deinitialize input devices and to generation touch / key events.

    public class InputGenerator : IDisposable
    Inheritance
    Object
    InputGenerator
    Implements
    IDisposable
    Remarks

    This is not for use by third-party applications.

    Constructors

    View Source

    InputGenerator(InputDeviceType)

    Creates and initializes a new instance of the InputGenerator class.

    Declaration
    public InputGenerator(InputDeviceType deviceType)
    Parameters
    Type Name Description
    InputDeviceType deviceType

    The device type want to generate events

    API Level: preview
    View Source

    InputGenerator(InputDeviceType, String)

    Creates and initializes a new instance of the InputGenerator class with given name.

    Declaration
    public InputGenerator(InputDeviceType deviceType, string name)
    Parameters
    Type Name Description
    InputDeviceType deviceType

    The device type want to generate events

    String name

    The device name (maximum 31 characters)

    API Level: preview

    Methods

    View Source

    Dispose()

    Destroys the current object.

    Declaration
    public void Dispose()
    API Level: preview
    View Source

    Dispose(Boolean)

    Releases all the resources currently used by this instance.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    true if the managed resources should be disposed, otherwise false.

    API Level: preview
    View Source

    Finalize()

    Destroys the InputGenerator object.

    Declaration
    protected void Finalize()
    View Source

    GenerateKeyEvent(String, Int32)

    Generates all of key events using a opened device.

    Declaration
    public void GenerateKeyEvent(string key, int pressed)
    Parameters
    Type Name Description
    String key

    The key name want to generate.

    Int32 pressed

    The value that select key press or release. (0: release, 1: press)

    API Level: preview
    View Source

    GenerateMouseEvent(Int32, InputPointerType, Int32, Int32)

    Generate a pointer event using a opened device

    Declaration
    public void GenerateMouseEvent(int buttons, InputPointerType type, int x, int y)
    Parameters
    Type Name Description
    Int32 buttons

    The number of button.

    InputPointerType type

    The pointer type.

    Int32 x

    x coordination to move.

    Int32 y

    y coordination to move.

    API Level: preview
    View Source

    GenerateTouchEvent(Int32, InputTouchType, Int32, Int32)

    Generate a touch event using a opened device

    Declaration
    public void GenerateTouchEvent(int index, InputTouchType type, int x, int y)
    Parameters
    Type Name Description
    Int32 index

    The index of touched finger.

    InputTouchType type

    The touch type.

    Int32 x

    The x axis of touch point.

    Int32 y

    The y axis of touch point.

    API Level: preview

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX