aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ivypointer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ivypointer.c b/src/ivypointer.c
index c72a761..0eb55c8 100644
--- a/src/ivypointer.c
+++ b/src/ivypointer.c
@@ -517,6 +517,7 @@ int main(int argc, char *argv[]) {
const char* bus = 0;
char busbuf [1024] = "";
char device_input_id [1024] = "(.*)";
+ char ivyName [1024] = "IvyPointer";
int wacom = 1;
float user_coordsO = 0;
float coordsO[4] = {0,0,0,0};
@@ -633,7 +634,12 @@ int main(int argc, char *argv[]) {
vert_ratio = height / height_input;
MsgRcvPtr ptrMove,ptrRelMove,ptrButton,ptrGeometry,ptrLockUnlock;
- IvyInit("IvyPointer","IvyPointer Ready",NULL,NULL,NULL,NULL);
+
+ if (device_input_id_given) {
+ sprintf(ivyName, "IvyPointer:%s", device_input_id);
+ }
+
+ IvyInit(ivyName,"IvyPointer Ready",NULL,NULL,NULL,NULL);
char regexp[2048] = "";
if (!wacom) {