InputSynth

InputSynth

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── InputSynth

Includes

#include <inputsynth.h>

Description

Functions

input_synth_new ()

InputSynth *
input_synth_new (InputSynthBackend backend);

input_synth_move_cursor ()

void
input_synth_move_cursor (InputSynth *self,
                         int x,
                         int y);

Parameters

self

The InputSynth

 

x

The x coordinate to move to

 

y

The y coordinate to move to

 

input_synth_click ()

void
input_synth_click (InputSynth *self,
                   int x,
                   int y,
                   int button,
                   gboolean press);

Parameters

self

The InputSynth

 

x

The x coordinate to click at (may have no effect depending on backend)

 

y

The y coordinate to click at (may have no effect depending on backend)

 

button

The button to click. The usual bindings are:

  • Button 1: Left Click

  • Button 2: Right Click

  • Button 3: Middle (Mouse Wheel) Click

  • Button 4: Scroll Up

  • Button 5: Scroll Down

  • Button 6: Scroll Left

  • Button 7: Scroll right

 

press

Whether to press or release the button

 

input_synth_character ()

void
input_synth_character (InputSynth *self,
                       char character);

Parameters

self

The InputSynth

 

character

A single ASCII character to synthesize. Does not support unicode.

 

input_synth_get_backend_name ()

GString *
input_synth_get_backend_name (InputSynth *self);

Parameters

self

The InputSynth

 

Returns

A purely informational descriptive name for the backend currently in use. Useful when testing backend loading.

Types and Values

InputSynth

typedef struct _InputSynth InputSynth;

INPUT_TYPE_SYNTH

#define INPUT_TYPE_SYNTH input_synth_get_type()