Hotplug new input devices

This commit is contained in:
Iwan Timmer
2015-05-12 14:39:20 +02:00
parent 25ebfde470
commit 487f2d9f6f
3 changed files with 83 additions and 34 deletions

View File

@@ -122,7 +122,6 @@ int main(int argc, char* argv[]) {
char* action = NULL;
char* address = NULL;
char* mapping = NULL;
bool inputs = false;
int option_index = 0;
bool sops = true;
bool localaudio = false;
@@ -160,7 +159,6 @@ int main(int argc, char* argv[]) {
break;
case 'j':
input_create(optarg, mapping);
inputs = true;
break;
case 'k':
mapping = optarg;
@@ -211,9 +209,7 @@ int main(int argc, char* argv[]) {
}
}
if (!inputs) {
input_autoload(mapping);
}
input_init(mapping);
client_init(address);