Identifying USB keypad press in FreeBSD - x11

I have an USB keypad and I would like to detect when the user has pressed those keys.
Right now if I check with xev the keycodes are the same. I.E., there is no difference between pressing the usb keypad or the keypad from the main keyboard.
Is there any way to intercept the USB Keypad in FreeBSD so I can use those keys for different tasks?

Related

Navigating inside Device Manager of windows 8 using only keyboard to enable Laptop Touchpad

My laptop touchpad was annnoying so i disabled it in the device manager. Now my curiosity is
How to enable touchpad using device manager without using external
mouse && using only the keyboard.
Please suggest alternatives that doesnt include installing softwares or touchpad drivers.
I have already done following steps:
windows key + x
selected device manager using up/down arrow.
for selecting mice and other pointers i tried and failed in following keys
up/down arrow
alt+up, alt+down.etc
windows + X to open device manager
TAB to jump into device tree
arrow down to go to mice and other pointing devices
arrow right to open mice and other pointing devices
arrow down to select your device
menu key to open context menu
arrow down to select activate device

Video Miniport Driver On and Off using Hotkeys

I am new to the Windows device drivers development world. I don't find anything related this topic.
I want to control Video miniport of windows 7/2008 by using hotkey. If I hit the hotkey for example Ctrl+s, the monitor is off, keyboard and mouse should diable(except my hotkey) and hit it again the same key monitor on( when the monitor on it goes to the lock screen), keybaord and mouse is enable.It should toggle every time if I hit the hotkey.
It works very similar to the win+L but the monitor turn on if you hit any key.But I want very specific key on the monitor, even Ctrl alt Delet should not on the monitor.The keyboard and mouse disable in this state.The main purpose I am doing this when the monitor is off/sleep mode it does not respond the ctrl alt dele events.I am disconnecting the monitor from ctrl alt dele even trigeer but monitor on and off using my hotkey only.
I know easy way to doing by autohotkey script to on and off monitor. But you can not stop
interrupt generated by ctrl alt dele keys. For that I don't want to hack ctrl alt dele key instead I control the video miniport to toggle the monitor on and off using hotkey( any combination hotkey is fine but on and off monitor with same hotkey).
I am Linux device driver developer.I don't have experience on Windows device drives programming.Please guide me what are the possibilities and how complex it is(to successfully controlling video port through keyboard). I did research on MSDN site ... but I don't know where to start.
thank you in advance for help

Sending Keyboard Shortcuts to OSX instead of separate commands

I was wondering how osx interprets keyboard shortcuts vs multiple keys being pressed at the same time.
For example, I have the control + left setup to move spaces to the left. When I use my keyboard osx interprets it as a shortcut.
Using http://manytricks.com/keycodes/ it does not even register, the OS seems to short-circuit the command on seems to know that it corresponds to a keyboard shortcut.
When using an external usb footswitch that sends the control key signal and the keyboard to send the left key signal the os Does not interpret it as a shortcut but instead interprets this as a control + left key As seen in the photo below
I posted this on apple.stackexchange but was hoping for a more technical answer
https://apple.stackexchange.com/questions/140732/sending-controlleft-command-with-external-footswitch-delcom-only-picking-up-c
The goal is to get the footswitch to send a correct control signal (key codes says it is sending the exact same control signal as when I hit the left control key on my keyboard)
The footswitch works as expected under ubuntu
Thank you
oh boy, from kinesis website
Note: Modifier actions from one USB device cannot modify the input of a second USB device due to limitations designed into the Apple operating system. Example: Shift, Control, Command, or Option keystrokes programmed into the footswitch cannot modify the input of a separate USB keyboard or mouse. However, a key sequence like ‘Cmd-W’ or ‘Cmd-Shift-left arrow’ will work on a Macintosh if the entire sequence of keystrokes has been pre-programmed into the footswitch. (Footswitch can only be programmed on a Windows PC).
I just tried this using my usb keyboard and built in osx keyboard and it seems to be true. I can hit control + left on my usb keyboard and it works fine but control on my usb keyboard + left on the builtin keyboard does not work:(

Are arrow keys detected by FFI-NCurses in Ruby 1.9.2 on Windows?

I am writing a tiny text editor using FFI-NCurses in Ruby 1.9.2 on Windows 7 (64-bit). After setting the keypad mode, I am able to handle the function keys. However, NCurses does not detect arrow keys being pressed.
I have a multimedia keyboard configured on Windows 7 as a normal US keyboard. Googling shows that arrow keys should have been detected once I set keypad mode to TRUE, but it just does not work.
Are the Ruby bindings at fault, or does NCurses on Windows (7) has a known issue of being unable to detect arrow keys?

How can I detect whether the alt/option key is down in GTK on Mac OS X?

I want to detect whether the alt/option key is pressed during a mouse drag in GTK on Mac OS X. I am using pygtk. Normally, holding down alt would add MOD1_MASK to event.state, but alt does affect event.state at all. In key press events alt shows up as gtk.keysyms.kana_switch, but this is not sufficient for my purposes since the user might press alt in a different application and switch to mine by clicking.
Is there an available setting that would cause alt/option to show up as a modifier in event.state? Alternatively, is there a way of detecting whether a key is currently down even if the key down event went to a different application?
I think you should use gtk.accelerator_get_default_mod_mask()
http://library.gnome.org/devel/gtk/unstable/checklist-modifiers.html

Resources