Page 57 of 128 FirstFirst ... 747555657585967107 ... LastLast
Results 561 to 570 of 1273

Thread: btnx: Send keyboard and mouse combination events with mouse buttons

  1. #561
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by blazoner View Post
    I got tired of having to look up all of the button configurations from btnx 0.2.x every time I had to start from scratch, so here they are in abbreviated form.

    I hope this helps, and I suggest that daou should probably link this post in post #1 of this thread.
    I will.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  2. #562
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by SuperAndy View Post
    It does seem that turning the mouse off results in all settings going back to some default. If the mouse is left on, however, its fine. Is this a known bug?
    It's likely that btnx quits when your mouse disappears from the system. Maybe there is a problem with the hotplugging functionality if it doesn't start up again. You can check you System Monitor to see if btnx closes after turning off the mouse. Then check if it reappears when you turn it on.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  3. #563
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by francois12 View Post
    hi

    this picture explains the bug I have when I click on the buttons shown it acts like a left click or a right click
    Is there a fix for this? thanks
    edit : it's not a "left click", it's a "middle click" (picture)
    Have you tried editing your xorg.conf file like recommended in the manual?
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  4. #564
    Join Date
    Nov 2007
    Beans
    47

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    I did it through just installing btnx and btnx-config, what exactly should I look for?

    (Yes, I configured the buttons, all work except the two side button ones)

  5. #565
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by tehpopa View Post
    Okay... forgive me for not seeing this in here, but searching didn't find me very much. I'm looking to use btnx as part of my solution to get vent working for me. Admittedly I don't even have Ubuntu installed anymore, but I am looking(desperately) to change that. So here's what I'm wondering. Can btnx send these keystrokes directly to a program? IE: Bind my mouses 4th button to ] or something, and have that be echo'd straight to a non-focused window? If not I think I've got another solution using btnx, x2vnc, and ventriloctrl. But it would be nice if I could slim it down a bit.
    btnx cannot send the events to specific windows only. If you know how to program, you could do it by including some X11 library functions to btnx.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  6. #566
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by [S]Duke View Post
    I did it through just installing btnx and btnx-config, what exactly should I look for?

    (Yes, I configured the buttons, all work except the two side button ones)
    I'm referring to the reference InputSection given in the troubleshooting section of the btnx manual. Look for section 9.2.1 here. Edit your xorg.conf file like described in that section, then restart your X session. It might help.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  7. #567
    Join Date
    Nov 2007
    Beans
    47

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    I tried to match it as much as possible, and got it looking like this:

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "no"
    EndSection

    However, now none of the buttons on the "thumb" part of the mouse. Before, it was everything except the two thumb buttons, but now the wheel has gone down as well.

  8. #568
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by [S]Duke View Post
    I tried to match it as much as possible, and got it looking like this:

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "no"
    EndSection

    However, now none of the buttons on the "thumb" part of the mouse. Before, it was everything except the two thumb buttons, but now the wheel has gone down as well.
    Try changing the Device to "/dev/psaux"
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  9. #569
    Join Date
    Nov 2007
    Beans
    47

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    That seems to make it work.

    I have another question though, it seems commands are a little limited for me. For example, KEY_VOLUME(UP or DOWN) doesn't seem to work, no matter what key I put it on. Any idea what may be causing this?

  10. #570
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by [S]Duke View Post
    That seems to make it work.

    I have another question though, it seems commands are a little limited for me. For example, KEY_VOLUME(UP or DOWN) doesn't seem to work, no matter what key I put it on. Any idea what may be causing this?
    This is dependent on the window manager. It might not handle those keys correctly. But you can get around it. In GNOME (Ubuntu), for example, you can define a keyboard shortcut (System->Prefs->Kbd Shortcuts) for changing volume. Then make btnx send the same keyboard shortcut.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

Page 57 of 128 FirstFirst ... 747555657585967107 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •