RaulPPelaez / Naga_KeypadMapper

This little linux xorg daemon allows you to map the side keypad of the Razer Naga series mice via a configuration file called mapping.txt under $HOME/.naga/
Other
105 stars 32 forks source link

Assigning a key to "Space" makes entire computer lag #56

Open HeyZeusV opened 6 years ago

HeyZeusV commented 6 years ago

As the title says, I have assigned in my keyMapping file "12 - key=KP_Space" on my Naga Epic Chroma. Every time I press the button on my mouse, my entire computer lags for like half a sec and it will not always insert a space where I want it. I also have my 11 key set to "Enter" in the same way and that works perfectly fine.

I also had another question, is it possible to assign the middle mouse button when you press it to the left and right? I really miss being able to go Back and Forward using it.

Thanks!

RaulPPelaez commented 6 years ago

naga.cpp calls internally to xdotool everytime you press a button in the mouse. The lag could be caused by naga.cpp hooking up to the mouse with ioctl or could be xdotool. We can check this if you run the xdotool line naga.cpp will call anyway: Please run: xdotool key --window getactivewindow KP_Space Does the computer lag or it just does the space? (What is KP_Space anyway?). If it doesnt lag, does it happen only if you assign it to key 12?

Regarding the middle button thing. I believe you should be able to do this. But you will probably have to do a little research to see how xinput identifies this buttons in your mouse. Honestly I do not remember the exact command now, but the xinput get-button-map commands in the README.md would be a good start.

HeyZeusV commented 6 years ago

Thank you so much for the quick reply!

When i run xdotool key --window getactivewindow KP_Space it just adds a space before my user name in the terminal which is what i wanted it to do(to act like a spacebar), but I ran a few apps in the background while I tried that command several times. Everything lagged as soon as I hit enter.

Thank you, I will definitely look into that!

RaulPPelaez commented 6 years ago

I do not have the slightest clue about what is happening here. But I do not thing it is related to this project... I am letting this issue here just in case anyone has an idea.