Lines Matching refs:device
48 #include "device-manager.h"
350 Gtk::TreeModelColumn<Glib::RefPtr<InputDevice const> > device;
353 DeviceModelColumns() { add(toggler), add(expander), add(description); add(thumbnail); add(device); add(mode); }
361 mapping[Gdk::MODE_SCREEN] = C_("Input device", "Screen");
548 Glib::ustring getKeyFor( GdkDevice* device );
552 void handleDeviceChange(Glib::RefPtr<InputDevice const> device);
553 void updateDeviceAxes(Glib::RefPtr<InputDevice const> device);
554 void updateDeviceButtons(Glib::RefPtr<InputDevice const> device);
555 static void updateDeviceLinks(Glib::RefPtr<InputDevice const> device, Gtk::TreeIter tabletIter, Glib::RefPtr<Gtk::TreeView> tree);
957 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
991 g_warning("Null device in list");
1032 deviceRow[getCols().device] = dev;
1062 deviceRow[getCols().device] = dev;
1170 modeCombo.set_tooltip_text(_("A device can be 'Disabled', its co-ordinates mapped to the whole 'Screen', or to a single (usually focused) 'Window'"));
1230 // Select the first device
1244 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1259 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1274 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1289 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1308 Glib::RefPtr<InputDevice const> dev = row[getCols().device];
1357 void InputDialogImpl::handleDeviceChange(Glib::RefPtr<InputDevice const> device)
1359 // g_message("OUCH!!!! for %p hits %s", &device, device->getId().c_str());
1368 device->getId(),
1371 Gdk::InputMode mode = device->getMode();
1380 void InputDialogImpl::updateDeviceAxes(Glib::RefPtr<InputDevice const> device)
1382 gint live = device->getLiveAxes();
1384 std::map<guint, std::pair<guint, gdouble> > existing = axesMap[device->getId()];
1389 axesMap[device->getId()][num].first = 2;
1390 axesMap[device->getId()][num].second = 0.0;
1394 updateTestAxes( device->getId(), 0 );
1397 void InputDialogImpl::updateDeviceButtons(Glib::RefPtr<InputDevice const> device)
1399 gint live = device->getLiveButtons();
1400 std::set<guint> existing = buttonMap[device->getId()];
1405 buttonMap[device->getId()].insert(num);
1409 updateTestButtons(device->getId(), -1);
1418 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1433 Glib::RefPtr<InputDevice const> dev = (*iter)[getCols().device];
1443 void InputDialogImpl::updateDeviceLinks(Glib::RefPtr<InputDevice const> device, Gtk::TreeIter tabletIter, Glib::RefPtr<Gtk::TreeView> tree)
1447 // g_message("Links!!!! for %p hits [%s] with link of [%s]", &device, device->getId().c_str(), device->getLink().c_str());
1451 device->getId(),
1455 // Found the device concerned. Can proceed.
1457 if ( device->getLink().empty() ) {
1459 // g_message("Item %s is unlinked", device->getId().c_str());
1463 Glib::RefPtr<InputDevice const> dev = (*deviceIter)[getCols().device];
1470 deviceRow[getCols().device] = dev;
1488 Glib::RefPtr<InputDevice const> dev = (*deviceIter)[getCols().device];
1495 deviceRow[getCols().device] = dev;
1502 device->getId(),
1505 dev = (*linkIter)[getCols().device];
1512 deviceRow[getCols().device] = dev;
1538 Glib::RefPtr<InputDevice const> dev = row[getCols().device];
1564 Glib::RefPtr<InputDevice const> dev = row[getCols().device];
1625 row[axisColumns.value] = C_("Input device axe", "None");
1688 Glib::RefPtr<InputDevice const> idev = row[getCols().device];
1807 Glib::ustring InputDialogImpl::getKeyFor( GdkDevice* device )
1811 GdkInputSource source = gdk_device_get_source(device);
1812 const gchar *name = gdk_device_get_name(device);
1861 if ( btnEvt->device ) {
1862 key = getKeyFor(btnEvt->device);
1863 source = gdk_device_get_source(btnEvt->device);
1864 devName = gdk_device_get_name(btnEvt->device);
1865 mapAxesValues(key, btnEvt->axes, btnEvt->device);
1880 // btnEvt->button, name, btnEvt->device,
1881 // (btnEvt->device ? btnEvt->device->name : "null")
1890 if ( btnMtn->device ) {
1891 key = getKeyFor(btnMtn->device);
1892 source = gdk_device_get_source(btnMtn->device);
1893 devName = gdk_device_get_name(btnMtn->device);
1894 mapAxesValues(key, btnMtn->axes, btnMtn->device);
1899 // name, btnMtn->device,
1900 // (btnMtn->device ? btnMtn->device->name : "null"),
1901 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 0)) ? btnMtn->axes[0]:0),
1902 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 1)) ? btnMtn->axes[1]:0),
1903 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 2)) ? btnMtn->axes[2]:0),
1904 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 3)) ? btnMtn->axes[3]:0),
1905 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 4)) ? btnMtn->axes[4]:0),
1906 // ((btnMtn->device && btnMtn->axes && (btnMtn->device->num_axes > 5)) ? btnMtn->axes[5]:0)