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 |
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.
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.
TaskManager_Task *InputDev_GetFocus(void);
This function gets the task with the focus.
The task with the focus or NULL if there's no task with the focus.
int InputDev_GetImpInfo(InputDev_ImpInfo *info);
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.
int InputDev_Register(TaskManager_Task *task);
This function registers that task may use the input device functions.
void InputDev_SetFocus(TaskManager_Task *task);
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.
Nothing.