Undocumented file. More...
Classes | |
class | BInputDevice |
Undocumented class. More... | |
Enumerations | |
enum | input_device_notification { B_INPUT_DEVICE_ADDED = 0x0001 , B_INPUT_DEVICE_STARTED = 0x0002 , B_INPUT_DEVICE_STOPPED = 0x0004 , B_INPUT_DEVICE_REMOVED = 0x0008 } |
enum | input_device_type { B_POINTING_DEVICE = 0 , B_KEYBOARD_DEVICE = 1 , B_UNDEFINED_DEVICE = 2 } |
enum | input_method_op { B_INPUT_METHOD_STARTED = 0 , B_INPUT_METHOD_STOPPED = 1 , B_INPUT_METHOD_CHANGED = 2 , B_INPUT_METHOD_LOCATION_REQUEST = 3 } |
Functions | |
BInputDevice * | find_input_device (const char *name) |
Undocumented function. | |
status_t | get_input_devices (BList *list) |
Undocumented function. | |
status_t | watch_input_devices (BMessenger target, bool start) |
Start/stop watching input devices for state changes. | |
Undocumented file.
enum input_device_type |
enum input_method_op |
BInputDevice * find_input_device | ( | const char * | name | ) |
Undocumented function.
name | Undocumented |
<value> | Undocumented |
Undocumented function.
list | Undocumented |
<value> | Undocumented |
status_t watch_input_devices | ( | BMessenger | target, |
bool | start | ||
) |
Start/stop watching input devices for state changes.
Informs the Input Server that target would like to start/stop receiving B_INPUT_DEVICES_CHANGED
messages, reflecting the state of input devices the Input Server is aware of.
The B_INPUT_DEVICES_CHANGED
message contains:
be:opcode
An input_device_notifcation
constant that identifies which event occured.be:device_name
A string containing the device's name.be:device_type
An input_device_type
constant representing the device's type.target | Where the device state change messages should or should not be sent. |
start | Whether target should start/stop receiving device state change messages. |
B_OK | Watching has successfully been started or stopped. |
B_BAD_VALUE | target never started watching for device state changes, though a request was made to stop watching for changes. |
Other | errors depending on the state of the Input Server. |