Interface representing main Nex object. More...
#include <INex.h>
Public Member Functions | |
virtual NexErrorCode | getDeviceCount (NexDeviceType type, int *baseID, int *countReturn)=0 |
Gets the number of devices attached to the system since last device detection of the given type. | |
virtual NexErrorCode | getDeviceInfo (int ID, void *infoReturn)=0 |
Gets information about the device attached to the system since last device detection. | |
virtual NexErrorCode | createDevice (int ID, INexDevice **deviceReturn)=0 |
Creates a device associated with the given ID. | |
virtual NexErrorCode | redetectDevices ()=0 |
Attempts to redetect devices. | |
virtual void | release ()=0 |
Releases the object and all objects created by it. |
Interface representing main Nex object.
virtual NexErrorCode INex::createDevice | ( | int | ID, |
INexDevice ** | deviceReturn | ||
) | [pure virtual] |
Creates a device associated with the given ID.
[in] | ID | The ID of the device. |
[out] | deviceReturn | Address of pointer to receive newly created device |
virtual NexErrorCode INex::getDeviceCount | ( | NexDeviceType | type, |
int * | baseID, | ||
int * | countReturn | ||
) | [pure virtual] |
Gets the number of devices attached to the system since last device detection of the given type.
The range of IDs is always contiguous, [ baseId, baseId + countReturn - 1]
[in] | type | The type of device to determine the count of. |
[out] | baseID | The base ID number starting for this device type |
[out] | countReturn | The number of devices of this type. |
virtual NexErrorCode INex::getDeviceInfo | ( | int | ID, |
void * | infoReturn | ||
) | [pure virtual] |
Gets information about the device attached to the system since last device detection.
[in] | ID | The ID of the device |
[out] | infoReturn | The structure to receive information about the device. Use NexMouseInfo or NexKeyboardInfo |
virtual NexErrorCode INex::redetectDevices | ( | ) | [pure virtual] |
Attempts to redetect devices.
virtual void INex::release | ( | ) | [pure virtual] |
Releases the object and all objects created by it.