aboutsummaryrefslogtreecommitdiff
path: root/src/ivypointer.c
diff options
context:
space:
mode:
authortissoire2010-10-12 13:53:14 +0000
committertissoire2010-10-12 13:53:14 +0000
commitfd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51 (patch)
tree131425a9bb071c518fd64b360dce252ea19cff60 /src/ivypointer.c
parent83351a0f1b8e9a41a70a5f8951448ab0c9aaafd3 (diff)
downloadivypointer-fd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51.zip
ivypointer-fd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51.tar.gz
ivypointer-fd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51.tar.bz2
ivypointer-fd5262cd2b446fb2e6bac25552fcf4fbbf8e8a51.tar.xz
concatenation du device au nom sur le bus
Diffstat (limited to 'src/ivypointer.c')
-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) {