From fd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51 Mon Sep 17 00:00:00 2001 From: tissoire Date: Tue, 12 Oct 2010 13:53:14 +0000 Subject: concatenation du device au nom sur le bus --- src/ivypointer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ivypointer.c') 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) { -- cgit v1.1