#48 Mouse Buttons Like Keys

open
nobody
None
5
2011-01-11
2011-01-11
Barry Mead
No

This patch makes mouse buttons transparent to the system. They act just like keyboard keys, which gives the key binding system much more flexibility as to how to use the mouse buttons. This patch also adds next weapon and previous weapon features as keyboard, or mouse wheel selectable options. This patch was applied to the source tree that was available to my Debian Lenny distribution. That version of the source tree is prboom-2.4.7+dfsg. I realize that the current source tree
is at version 2.5, but I hope the changes will integrate well.

Discussion

  • Barry Mead
    Barry Mead
    2011-01-11

    More cleanup around the old mouse only functions.

     
  • Barry Mead
    Barry Mead
    2011-01-11

    I added a little more cleanup to eliminate more of the unnecessary code that hard coded mouse buttons to selected functions. Now any function can be allocated to the mouse buttons just like the keyboard keys.

     
  • Barry Mead
    Barry Mead
    2011-01-11

    I downloaded the latest prboom-2.5.0 tarball and applied the changes to that version. Now the patches are fully up-to-date with the current stable source tree. This patch makes doom play like the more modern games like quake3, or unreal tournament. Now you can fully configure your mouse buttons or keys to define the user interface the way you like it.

     
  • Barry Mead
    Barry Mead
    2011-01-11

    Fixed small bug. The keypad number 9 was limit checked with a < and should have been <=.

     
  • RjY
    RjY
    2011-02-08

    Thanks Barry and sorry for not replying to this sooner. I think this looks useful but would need a bit of work to get into trunk (it clashes with a couple of things I'd already done, like taking chocolate doom's mouseb_backward and mouseb_use)