Doom monster
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > PRBoom+ v2.506: Mouse-Button Binding?; Launcher?
 
Author
All times are GMT. The time now is 02:25. Post New Thread    Post A Reply
WinstonSmith6079
Warming Up


Posts: 19
Registered: 10-05


I'm new to PRBoom Plus, just downloaded it yesterday for the first time.

I'm having trouble binding the actions that I want to my mouse-buttons and need to know how to I can do that.

I want MB1 (the left button) to Fire (this was no problem and is done), MB2 to Open/Use (with a single click, not a double-click), MB3 (the mouse-wheel in the top center) to toggle the Automap, and I want to switch weapons by rolling the wheel--mouse-wheel up for Next Weapon and mouse-wheel down for the Previous Weapon.

I took a look in the .CFG file to try to do this stuff, but didn't understand the codes next to the actions. They seem to represent particular keys and things, but I don't know those codes!

I also want the Launcher to come back when I boot the port, as I may wanna easily change IWADs and/or add a PWAD next time I run it.

Please help! Thanks in advance.

Last edited by WinstonSmith6079 on 04-13-10 at 20:42

Old Post 04-13-10 19:02 #
WinstonSmith6079 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4615
Registered: 08-00


I could be wrong but I don't see any code to allow this in the source :< In Doom the mouse was hard-coded to certain actions on each button.

Old Post 04-13-10 20:37 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
WinstonSmith6079
Warming Up


Posts: 19
Registered: 10-05


Oh. I hope you're wrong because, even though certain things were hard-coded in the original game program, that would rather defeat the purpose of an added feature like mouse-look, which exists in the port (but didn't in the original game).

Old Post 04-13-10 20:40 #
WinstonSmith6079 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Mike.Reiner
Forum Regular


Posts: 977
Registered: 01-05


PrBoom/+ have always had pretty limited control settings (even compared to Chocolate-Doom, which is all about keeping things as close to vanilla as possible..)

You can't easily clear binded keys, and use is basically worthless on the mouse since it has to be double click.

I personally just went into the .cfg file and put '-1' for the lines relating to the right and middle buttons.

I'm now used to these limitations, but I REALLY wish something would be done about this.

Entryway hasn't really showed any interest in working on this unfortunately. I don't know if it's too much work or if he just doesn't care. Wish he wouldn't have dodged the subject when I brought this up a while ago. :/

Old Post 04-14-10 02:09 #
Mike.Reiner is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4615
Registered: 08-00


If you disable the mouse actions in the config file it might be possible to use a third-party "mouse to key" utility to accomplish the same thing, by remapping mouse buttons to generate keydown events for the actions you want to target. Just an idea.

Old Post 04-14-10 02:35 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mike.Reiner
Forum Regular


Posts: 977
Registered: 01-05



Quasar said:
If you disable the mouse actions in the config file it might be possible to use a third-party "mouse to key" utility to accomplish the same thing, by remapping mouse buttons to generate keydown events for the actions you want to target. Just an idea.

Yeah this has been mentioned. Honestly, I'd rather adapt to using space bar for 'use' over messing with some external app, mostly because I like to have doom on my flash drive.

Old Post 04-14-10 02:38 #
Mike.Reiner is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
HackNeyed
Member


Posts: 380
Registered: 08-04


I can help. CLICK HERE! "how-to-add-mouse-binds-to-prboom-plus-using-autohotkey-in-windows"

There are no Next Weapon and Previous Weapon commands in PrBoom though, so I guess a script could be written to go up and down the number keys (what about empty slots?) but that is beyond my capability at this time and I'm afraid it would break easily while in a game.

To re-enable the launcher there is a menu option. Options > General > page 2 > last item “use in-game launcher = Smart”

or in the cfg.

code:
# Prboom-plus launcher settings launcher_enable 1


...


Mike.Reiner said:

Yeah this has been mentioned. Honestly, I'd rather adapt to using space bar for 'use' over messing with some external app, mostly because I like to have doom on my flash drive.



I've also asked and wish very much that PrBoom support these function natively. On my EeePC it is uncomfortable to reach the Spacebar while keeping my fingers on my movement keys. So short of learning C(+)(+?) which I intend to one day this was the quickest work around.

I Play Doom from USB sometimes and as I mention in the How To, once the bind script is finished it can be converted to a standalone exe and be ran on systems without AutoHotKey. I keep it in my PrBoom-Plus folder and if I add it to the top of my PrBoom batch files (all with relative paths ;)) I don't even have to remember to launch it.

Last edited by HackNeyed on 04-14-10 at 12:00

Old Post 04-14-10 04:50 #
HackNeyed is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
WinstonSmith6079
Warming Up


Posts: 19
Registered: 10-05



HackNeyed said:
I can help. CLICK HERE! "how-to-add-mouse-binds-to-prboom-plus-using-autohotkey-in-windows"

Woah! That did help, a lot! Thanks, man! :-) However I would still love to see a Next Weapon/Previous Weapon function in PRBoom+ (and GLBoom+). I totally can't get to those number-keys in time to switch my weapons that way.

I've used GZDoom for years and it has such a function, as do the vast majority of FPSs. I don't see why PRBoom+ shouldn't have it too. So please, somebody put that in there, please.

Last edited by WinstonSmith6079 on 04-21-10 at 21:21

Old Post 04-20-10 22:46 #
WinstonSmith6079 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
HackNeyed
Member


Posts: 380
Registered: 08-04



WinstonSmith6079 said:

Woah! That did help, a lot! Thanks, man! :-) However I would still love to see a Next Weapon/Previous Weapon function in PRBoom+ (and GLBoom+). I totally can't get to those number-keys in time to switch my weapons that way.



I'm glad it helps.

Yeah, ever since Quake 3 I've learned to bind my weapons around my movement keys and bind single weapons to mouse buttons/wheel up & down. If the game has that many weapons and I'm familiar with them and I am serious enough about the game... Otherwise, yeah I use Next Weapon/Previous Weapon on the Mouse Wheel and numbers on the keyboard.

Boom allows easy re-binding to the keyboard by default (no need for AutoHotkey for this). (G)ZDoom can bind the weapons to other keys and mouse buttons/wheel as well but you have to dig in the ini file.

My movement keys are ESDF so I group Doom's weapons as follows.

z=Fist\Chainsaw
w=Pistol
r=Shotgun(s)
a=Chaingun
t=Rocket Launcher
g=Plasmagun
v=BFG

Since Doom is what I play most I just carry the theme to other games.

In Quake 3

a=Lightning Gun since it's common and acts like the Doom chaingun
r=Shotgun
g=Plasmagun
t=Rocket Launcher
q=Grenade Launcher
wheel up=Railgun
wheel down=BFG since it's rare and an super Plasmagun
mouse thumb=Gauntlet/Melee
etc...

Visual Aid for my Doom setup. Numbers represent the default weapon number in Doom.

http://hackneyed.home.insightbb.com/doom/hkey.jpg

__________________
Tired of MS Wave Synth while playing Ports?
Having difficulties with MIDI volume in Vista/7 while playing Ports?
Or are you having problems with EAWPats?
Read HOW TO: Timidity for PrBoom-Plus and ZDoom variants on Windows

Want to bind Actions and Commands to Mouse Buttons for PrBoom (Plus) such as single click Use or individual Weapons?
Find out HOW TO: Add Mouse Binds to PrBoom (Plus) Using AutoHotKey in Windows

Last edited by HackNeyed on 04-21-10 at 03:06

Old Post 04-21-10 01:10 #
HackNeyed is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
WinstonSmith6079
Warming Up


Posts: 19
Registered: 10-05


Yeah, I could re-bind the weapon buttons to other buttons, but I still would love a Next Weapon/Previous Weapon function that could be bound to Mouse-Wheel Up and Mouse-Wheel Down, respectively.

Hell, if I had the technical and programming knowledge, I'd add the function myself and release it to everyone, submit it to the PRBoom+ people for approval as a new version and stuff and whatever. But I don't. :( I sure wish that someone who does have such knowledge would add that in there, though. I'm guessing that it wouldn't truly screw-up old compatibilities and all to have that in there.

Old Post 04-21-10 21:28 #
WinstonSmith6079 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 02:25. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > PRBoom+ v2.506: Mouse-Button Binding?; Launcher?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory