device-manager.cpp revision 55919b10f5e27d2fa50c03ca269bce594f5c8d82
/*
* Inkscape::DeviceManager - a view of input devices available.
*
* Copyright 2006 Jon A. Cruz <jon@joncruz.org>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <glib.h>
#include "device-manager.h"
static void createFakeList();
namespace Inkscape {
InputDevice::InputDevice() {}
InputDevice::~InputDevice() {}
class InputDeviceImpl : public InputDevice {
public:
virtual ~InputDeviceImpl() {}
private:
void operator=(InputDeviceImpl const &); // no assign
};
: InputDevice(),
{
}
class DeviceManagerImpl : public DeviceManager {
public:
protected:
};
devices()
{
if ( !fakeList ) {
}
if ( dev ) {
// g_message("device: name[%s] source[0x%x] mode[0x%x] cursor[%s] axis count[%d] key count[%d]", dev->name, dev->source, dev->mode,
// dev->has_cursor?"Yes":"no", dev->num_axes, dev->num_keys);
}
}
}
{
for ( std::list<InputDeviceImpl*>::const_iterator it = devices.begin(); it != devices.end(); ++it ) {
}
return tmp;
}
static DeviceManagerImpl* theInstance = 0;
}
DeviceManager::~DeviceManager() {
}
if ( !theInstance ) {
theInstance = new DeviceManagerImpl();
}
return *theInstance;
}
} // namespace Inkscape
GdkDeviceKey padKeys[] = {{0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0},
{0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}};
GdkDeviceKey eraserKeys[] = {{0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0},
GdkDeviceKey cursorKeys[] = {{0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0},
GdkDeviceKey stylusKeys[] = {{0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0}, {0, (GdkModifierType)0},
static void createFakeList() {
if ( !fakeList ) {
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :