multiple keyboard/devices and mice ready for linux

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

multiple keyboard/devices and mice ready for linux

Post by netpipe »

https://github.com/netpipe/libInput new library I freelanced for Linux to have multiple mice/device and keyboards at the same time. just waiting for a quickfix in cmake and it should be ready. this should go into Irrlicht itself too the windows version is https://github.com/NoobsArePeople2/manymouse maybe combine them somehow. there is also x11 for windows too this might still work there. http://www.straightrunning.com/XmingNotes
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by CuteAlien »

Nice, haven't really seen this since Amiga days.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

im wondering how hard it would be to render irrlicht in the multi-pointer demo. we could have our own compiz with multiple cursors :)
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

thanks to latest svn the libinput made it into Luna engine no issues. only thing left is scripting
//Display* display = XOpenDisplay(NULL);

Display* display = (Display*)Devicelibinput->getVideoDriver()->getExposedVideoData().OpenGLLinux.X11Display;
// int screen = DefaultScreen(display);
Window main_window;
// XSetWindowAttributes window_attrs;
// window_attrs.background_pixel = XWhitePixel(display, screen);
// window_attrs.border_pixel = XBlackPixel(display, screen);
// window_attrs.win_gravity = SouthWestGravity;
main_window = (Window)Devicelibinput->getVideoDriver()->getExposedVideoData().OpenGLLinux.X11Window;//
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

does irrlicht have support for 9 button mice with the directional wheel mouse buttons like https://www.amazon.ca/gp/product/B0876CHLBY/ < bought one of these and really love it i taped a glue stick to the bottom under the ball to play with the angles a bit and its great sofar very responsive and smooth better than my old logitech trackman.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by CuteAlien »

Currently 3 buttons on Linux and 5 on Windows (if first and second X button means mouse 4 and 5...).
X11 supporting button 4 and 5 would be nice in case someone know how to do it. Not sure how to use more than 5 buttons on Windows as that's all the Windows API seems to support (also never had one with more buttons, so not really sure how the work).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: multiple keyboard/devices and mice ready for linux

Post by netpipe »

i have this set for mine at the moment and code browsing is very fast.

Code: Select all

#xbindkeys -f ~/.xbindkeysrc 
#sudo apt-install xdotool xbindkeys

# Mouse Button #8 
# Show Gnome overview  
"xdotool key Page_Up"
     b:9

# Mouse Button #9
# Show all applications
"xdotool key Page_Down"
     b:8
     
# Mouse Button #8 
# Show Gnome overview  
"xdotool key Page_Up"
     b:6

# Mouse Button #9
# Show all applications
"xdotool key Page_Down"
     b:7
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply