C4 Engine Terathon Software C4 Engine API Documentation

• Logitech Plugin

API Links
Developer Links

class LogitechDevice

Defined in:  C4LogitechPlugin.h
Encapsulates functionality for a Logitech device having a LCD display.
Definition

class LogitechDevice : public ListElement<LogitechDevice>

Member Functions
LogitechDevice::GetDeviceImage Returns a pointer to the image storage buffer for a Logitech device.
LogitechDevice::UpdateDeviceImage Updates image shown the LCD display for a Logitech device.
Constructor

LogitechDevice();

Description
The LogitechDevice class encapsulates functionality for a Logitech device having a LCD display. When the Logitech Plugin is initialized, it searches the computer for compatible devices and creates a new LogitechDevice instance for each one that it finds. These instances are stored in a list that can be accessed using the LogitechPlugin::GetFirstDevice function.

Each Logitech device maintains storage for its own 160×42 pixel image. The image shown on the device's LCD display is modified by retrieving a pointer to this storage area using the LogitechDevice::GetDeviceImage function, changing the image data, and then calling the LogitechDevice::UpdateDeviceImage function.
Base Classes
ListElement<LogitechDevice> Used internally by the Logitech Plugin.