View Full Version : Activation key soon?
DivineHawk
29-09-2002, 06:58
Is the "activation key" feature planned for the next linux client release? (I really miss it)
:D
(i realize this was mentioned in the release comments, just wondering if this was achieved yet)
N. Werensteijn
29-09-2002, 14:30
Nope, sorry.
The problem is that i still need help finding a way to do it, if it is at all possible.
Windows as 2 different api's to intercept keyboard keys. But i am not even sure linux has such an api, since it can be a security hazzard.
There is no easy way to do this kind of thing. Is there anything such as Direct Input in the SDL? Or something like modified keymaps? When you launch xkeycaps you see all the Keysyms and Keycodes. Then there are problems with Window Managers that would catch keystrokes of some kind by default. This certanly isn't easy and I have little to no experience with how to bypass it all. Perhaps a tiny XF86 module that intercepts the desired keybind, loaded in XF86Config.
Hi.
At least, there must a way of doing this. For example, if i press ctrl+tab while I'm playing Counter-Strike (using wine) I can switch to different application-windows. (I'm using KDE3).
Maybe you should take a look into some keygrabbers (i.e. the one from blackbox: http://bbkeys.sourceforge.net/). Or the one integrated in Openbox (http://icculus.org/openbox/) or Fluxbox (http://fluxbox.sourceforge.net/).
I'm no real programmer, so I might be totally wrong, but maybe one of those links helps you...
anyway, great work so far...
so long,
red
N. Werensteijn
29-09-2002, 22:02
Thanks for the links.
Yes it is possible in wine because i suspect that the keys all first go trough wine :0.
In X it is also possible because i think i can make retrieve keys at the very least from kde or so, wich gets all keys first (i think, not realy sure yet).
But how about grabbing a key fom a full screen opengl application in an X application. I realy have no clue yet, still have to read up on it :)
DivineHawk
30-09-2002, 03:17
A few helpful links, (even though they use a different language, people have done this)
http://www.daa.com.au/pipermail/pygtk/2002-September/003445.html
http://www.handhelds.org/pipermail/ipaq/2001-March/005272.html
Hope this helps!
;)
As far as I know, there is a similar hook for linux in the last ogc (******* tool for quake). I am not the checker about programming in c++, but I think you can use it quite well in TeamSpeak I guess.
--- Disclaimer as gamer :) ----
NO I DONT USE IT, I JUST WANT KNOW WHAT THE CHICKENS DO IF THAY CANT WIN.
--- Disclaimer as gamer :) ----
Ok I didnt follow links in post before me, this is a "cleaner" solution I think.
well ... seems to be that a way is to do a xbuttonevent or xkeymapevent .. see xfree docs ..
N. Werensteijn
30-09-2002, 17:51
XGrabKeyboard seems usefull :)
Going to do some research on that
yeah .. but beware the revenge of the xlibs ;) .. i thing there was a tricky hack for keygrabbing on x-root .. dunno yet .. long time ago when i tryed it .. keep u inform when i get some hints ...
greetz
zurk
SDL provides Keyboard Input functions which are quite useful (used them in my own projects). Here's a link FYI:
http://sdldoc.csn.ul.ie/guideinputkeyboard.php
May I do some teasing ?
I dunno if Niels likes me to tease you guys, but combine the topic thread with my idea of teasing, and you might guess what kind of capabilities my ts client has got :-)
Great Work Niels ! No bugs anymore :)
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.