Can you add support for additinal mouse buttons?
upi00r
Member Posts: 91
Can you add support for additional mouse buttons? (so player could have something like this for example: MB4-select all, MB5-pause, etc.)
Post edited by [Deleted User] on
2
Comments
I use it myself, but other than that I don't know it or its author, so use at your own discretion, just like with everything else on the Internet!
Set up a custom profile for baldur.exe (just run the game and choose it from the list), then put in {space} as a custom key for MB5, and it works! Let me know if you need more info
Hey, thanks for the heads up. I'll bookmark this page. ;p and try it, after I get a copy of the game.
I use one as the Ctrl+J teleport hack.
The other button I use in combination with WASD to navigate the map instead of the arrow keys on the right of my keyboard.
I also remapped things like the CapsLock key for "select all" instead of the = button. And the Tab key as the Enter button (just to skip through dialogue).
I really dislike having keys spread out on both sides of the keyboard, putting them all within reach of my left hand is great (that way I can keep one hand on the mouse as well).
I understand the desire for this feature to be coded into the game itself, but AHK is definitely an easy solution in the meantime.
AutoHotKey looks quite interesting, though it's a bit more cumbersome to set up than XMouse. Still, it looks more powerful, what with the scripting language and everything.
Would you mind sharing your script for BG:EE ? I had a quick poke around, and got it to work ok with my mouse buttons, but I'm hardly an expert at it, and would like to see if I'm going about it right, or if there's a more elegant solution than what I came up with (I feel there should be).
My mouse's buttons on the side are XButton1/2. So one of them I use to skip through dialogue instead of hitting "continue" or pressing Enter (like I said earlier, I like all the hotkeys on the left of the keyboard). The other mouse button replaces the right Shift. Below that, I have the WASD keys (when pressed at the same time as Right Shift or XButton2) will scroll around the map like the arrow keys do.
The reason I did this was so I can still type with the script running and by using the Right Shift, I can still make capital W/A/S/D letters with the left shift button.
Oh, and I actually have the scroll/middle button used as my Teleport key
And important thing to remember is that the keys do not nullify the ones they are replacing. The = button will still select all of my party and the directional arrow will still move my view around the map.
Basically you jsut have to put "::" between the keys you want to remap.
You can check the following link for more info on what keys can be remapped, or let me know if you need help (I may not know, my knowledge of programming/scripting is very limited).
http://www.autohotkey.com/docs/KeyList.htm
EDIT: AHK is actually way more powerful. The script I provided is nothing There are lots of things that can be done that I still haven't figured out yet (because I'm so new to the scripting language and programming in general).
#IfWinActive, Baldur's Gate - Enhanced Edition
w::UP
a::LEFT
s::DOWN
d::RIGHT
½::Enter
XButton2::=
XButton1::Space