General Info

Interface: InputDev
Files: inputdev.h
Last change: 15/12/2002
Author: Luiz Henrique Shigunov
Description
Structures
System Functions

0x00 - GetFocus - Get the task with the focus
0x01 - GetImpInfo - Get informations about the implementation

0x02 - Register - Register a task
0x03 - SetFocus - Set the task with the focus

Description

This page describes the InputDev interface which provides access to input devices (keyboard, mouse, etc).

The input devices must send their generated events using the function SendEvent from the InterManager interface.

Structures

typedef struct {
    const char *interface;
    const char *implementation;
} InputDev_ImpInfo;

Where interface it's the name of the interface and implementation it's the name of the implementation.

0x00 - GetFocus

Syntax

TaskManager_Task *InputDev_GetFocus(void);

Properties

Description

This function gets the task with the focus.

Return value

The task with the focus or NULL if there's no task with the focus.

0x01 - GetImpInfo

Syntax

int InputDev_GetImpInfo(InputDev_ImpInfo *info);

Properties

Description

This function gets informations about the implementation of the input device.

The informations about the implementation can be used while the module is in use.

In case of success, info will have the informations.

Return value

0x02 - Register

Syntax

int InputDev_Register(TaskManager_Task *task);

Properties

Description

This function registers that task may use the input device functions.

Return value

0x03 - SetFocus

Syntax

void InputDev_SetFocus(TaskManager_Task *task);

Properties

Description

This function sets task as the task with the focus.

All events generated by the device will be sent to the task with the focus.

Return value

Nothing.