Lines Matching +refs:val +refs:mode
34 Gdk::InputMode mode;
50 const bool mode_matches = (device->get_mode() == (*it).mode);
311 virtual void setMode( Glib::ustring const & id, Gdk::InputMode mode );
352 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,
374 Gdk::InputMode mode = Gdk::MODE_DISABLED;
375 Glib::ustring val = prefs->getString(path + "/mode");
376 if (getStringToMode().find(val) != getStringToMode().end()) {
377 mode = getStringToMode()[val];
379 if ((*it)->getMode() != mode) {
380 setMode( (*it)->getId(), mode );
385 val = prefs->getString(path + "/axes");
386 if (!val.empty()) {
387 std::vector<Glib::ustring> parts = Glib::Regex::split_simple(";", val);
397 val = prefs->getString(path + "/keys");
398 if (!val.empty()) {
399 std::vector<Glib::ustring> parts = Glib::Regex::split_simple(";", val);
422 prefs->setString( path + "/mode", getModeToString()[(*it)->getMode()].c_str() );
460 void DeviceManagerImpl::setMode( Glib::ustring const & id, Gdk::InputMode mode )
465 if (isValidDevice(device) && ((*it)->getMode() != mode) ) {
466 bool success = device->set_mode(mode);
470 g_warning("Unable to set mode on extended input device [%s]", (*it)->getId().c_str());
644 fakeList[0].mode = Gdk::MODE_SCREEN;
651 fakeList[1].mode = Gdk::MODE_SCREEN;
658 fakeList[2].mode = Gdk::MODE_SCREEN;
665 fakeList[3].mode = Gdk::MODE_SCREEN;
691 fakeList[4].mode = device->get_mode();
702 fakeList[4].mode = Gdk::MODE_SCREEN;
712 mode:c++
715 indent-tabs-mode:nil