-
Sorry about the readabilityof first post.
Below is a snippet of the 199-Keyboard-Default file. The last "elif" is what I added. Can someone tell me what I did wrong?
elif Event.Code == GizmoKey.KEY_MUTE:
Gizmod.toggleMuteAllCards()
return True
elif Event.Code == GizmoKey.KEY_NEXTSONG:
# ctrl alt right (switch workspace in compiz...
2009-11-09 21:25:05 UTC by lostinthe60s
-
Below is a snippet of the 199-Keyboard-Default file. The last "elif" is what I added. Can someone tell me what I did wrong?
elif Event.Code == GizmoKey.KEY_MUTE:
Gizmod.toggleMuteAllCards()
return True
elif Event.Code == GizmoKey.KEY_NEXTSONG:
# ctrl alt right (switch workspace in compiz)
Gizmod.Keyboards[0].createEvent(GizmoEventType.EV_KEY...
2009-11-09 21:07:07 UTC by lostinthe60s
-
I'm about to work in a project that aims to recognize user's gestures in front of a camera. I'd like my program to interact with the OS as any other input device, recognizing simple gestures (pause, page up, page down, or even control the mouse...) I've considered to use libgizmod as the library to use to pass events to the system from a program written in opencv (python binding)
I've seen the...
2009-10-18 17:01:48 UTC by davidcuenca
-
I'm having a hard time making gizmod grab exclusive access of my keyboard. Specifically, I've tried putting a call to grabExclusiveAccess into handleDeviceAddition in GizmoRegistrar, and in __init__ in 199-Keyboard-Default, and in both cases, as soon as I start gizmod the keyboard is understood to be holding down the enter key, scrolling terminal text off the top of the screen and wreaking...
2009-08-31 20:10:43 UTC by blahedo
-
This is gizmod 3.4 (package gizmod-3.4-0ubuntu1) on Ubuntu 9.04 with kernel 2.6.31 (package linux-image-2.6.31-020631rc5-generic) i686. gizmod runs and operates fine, but consumes between 80 and 100% of the CPU. strace, for what it is worth, reports a constant stream of these:
poll([{fd=3, events=POLLIN|POLLOUT}, {fd=0, events=POLLIN|POLLOUT}, {fd=4, events=POLLIN|POLLOUT}, {fd=5...
2009-08-31 15:15:35 UTC by nobody
-
Could you post a link to how grabExclusiveAccess is normally used? I naively stuck it in the constructor of a handler and that did not go very well. (Specifically, it suddenly started acting as if the down-arrow key was being held down. I needed to plug in a second keyboard to ^C it.)
2009-08-26 04:37:58 UTC by blahedo
-
This can be a bit complicated to do depending on your setup. The problem is, in order to capture an event and stop it from proceeding through the rest of the input device chain the device must be set to exclusive mode (http://gizmod.sourceforge.net/documentation/apidocs/a00048.html#96b932a83d3c98ce617a0604230423f3).
But then, you'll find that any unhandled events for the device might be...
2009-08-25 13:48:15 UTC by flithm
-
I'm also seeing this as well.
I had planned to replace an input but even though my replacement code works Linux still receives the original code as well. I'm wondering if this is actually Gizmod doing this or whether we don't have exclusive access to the keyboard events and Linux is receiving it seperately from Gizmod as well.
2009-08-25 13:25:00 UTC by netou
-
I'm new to gizmod and was pleased to get my keyboard successfully sending mouse events (I miss fvwm's CursorMove!), but I'm finding that the original keyboard event is still falling through and being processed, even though my onDeviceEvent is returning True. Specifically, I've programmed Alt-H to move the mouse to the left as follows (in 199-Keyboard-Default.py):
elif...
2009-08-24 23:40:28 UTC by blahedo
-
Hello,
I have 2 powerbuttons detected through input-layer.
Standard - Power Button (FF) [event0]
Standard - Power Button (CM)[event1]
So I should be able to map an event from a remote button (IR) to a push event on the power button to shutdown the box with my remote.
I could not find any examples on how to do this, its also not mentioned as a possibility for use of gizmod. So can...
2009-08-10 11:01:48 UTC by kwetal