Keymaping

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
UnCoupDeMontreal
Private
Private
Posts: 4
Joined: Fri Dec 24, 2004 1:16 am

Keymaping

Post by UnCoupDeMontreal » Fri Dec 24, 2004 1:24 am

Hi,
I want to modify the keymaping in the bzflag19.bzc file such that I can have better ease of use.

My goal: have the mousewheel turn (not click) and make the radar range increase or decrease. That or make two keys change the radar range, say one zooms in, the other zooms out. (set displayRadarRange X)
Both would have increments.

First problem, bzflag erases all "major" modifications like adding the WheelUp bind. Ive found this on that site http://www.bzflag.org/doxygen/classBzfKeyEvent.html#s74

Second, I dont know if there are other possibilities besides /set and /bind that are accepted in the .bzc file

Thanks

User avatar
Memnarch
Sergeant First Class
Sergeant First Class
Posts: 273
Joined: Mon Jul 05, 2004 10:42 pm
Location: Sorry, I'm a Nowhere Man
Contact:

Post by Memnarch » Fri Dec 24, 2004 1:47 am

Idon't know if this is possible, so maybe it would be better stated as an enhancement? I think they are good ideas.
Image

User avatar
toaster
Private First Class
Private First Class
Posts: 457
Joined: Sat Feb 21, 2004 4:44 pm

Post by toaster » Fri Dec 24, 2004 1:52 am

The standard keymapping that I have for the 4 and 5 keys does radar incremental zoom out/in. From my config file:


bind 5 down "mult displayRadarRange 0.9524"
bind 6 down "mult displayRadarRange 1.05"
-toaster
"So there I was, all alone, facing all of the enemy. I started driving in circles, until I had them surrounded, and then I escaped in the confusion."

UnCoupDeMontreal
Private
Private
Posts: 4
Joined: Fri Dec 24, 2004 1:16 am

Post by UnCoupDeMontreal » Fri Dec 24, 2004 1:55 am

Sweet! gonna try it!

btw, is anyone able to make the mouse wheel setting work? It is WheelUp or WheelDown?

Edit: Loved it! thank you very much!

Next step, is there a way to set the radar to a minimal/maximal range?
Ive tried /set "min displayRadarRange 0.1" and it didnt do any thing

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Fri Dec 24, 2004 2:53 am

the mousewheel is not supported.
ImageJeffM

UnCoupDeMontreal
Private
Private
Posts: 4
Joined: Fri Dec 24, 2004 1:16 am

Post by UnCoupDeMontreal » Fri Dec 24, 2004 3:17 am

Ok, thats sad though.
Is there any possibility it will ever be supported?
Thanks for the info

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Fri Dec 24, 2004 6:00 am

the SDL builds of the next release may support it as buttons 4 and 5 on the mouse.

maybe...
ImageJeffM

User avatar
Scorch
Private First Class
Private First Class
Posts: 747
Joined: Thu Sep 30, 2004 12:16 am
Contact:

Post by Scorch » Fri Dec 24, 2004 1:19 pm

now this may be a bit outdated but i have a stupid idea (not unusual.) you could put in your stuff and then edit the conf file so that BZFlag does not have permission to write on it? might jam some other stuff though :? .

User avatar
toaster
Private First Class
Private First Class
Posts: 457
Joined: Sat Feb 21, 2004 4:44 pm

Post by toaster » Sat Dec 25, 2004 4:21 pm

UnCoupDeMontreal wrote:Next step, is there a way to set the radar to a minimal/maximal range? Ive tried /set "min displayRadarRange 0.1" and it didnt do any thing
I believe these are semi-standard settings for the 1,2,3, and 4 keys:

bind 1 down "set displayRadarRange 0.2"
bind 2 down "set displayRadarRange 0.4"
bind 3 down "set displayRadarRange 0.8"
bind 4 down "set displayRadarRange 1.2"

You can adjust the numbers to anything you'd like.

UnCoupDeMontreal
Private
Private
Posts: 4
Joined: Fri Dec 24, 2004 1:16 am

Post by UnCoupDeMontreal » Mon Dec 27, 2004 11:09 pm

Thanks toaster, worked very well after I ajusted to my needs the factors.

Happy New Year!

LEGOManiac
Private First Class
Private First Class
Posts: 5
Joined: Sat Aug 30, 2003 2:29 am
Location: Toronto, GWN

I love the incremental zoom in/out idea but...

Post by LEGOManiac » Thu Jan 27, 2005 12:29 am

Is there a way to get it to continuously zoom in or out while holding down a button on the steering wheel (ditto for the keyboard).

I'd like to just hold a button down and zoom in until I let go and vice versa.

On the same topic, is there a way to logically combine buttons? Say, for example, button one zooms in, button 2 zooms out, both buttons at the same time would reset the zoom to a default value?

User avatar
Tupone
Dev Guru
Dev Guru
Posts: 12
Joined: Sat Oct 25, 2003 10:40 pm
Location: Rome, Italy
Contact:

Post by Tupone » Thu Jan 27, 2005 5:19 pm

SDL build in 2.0 already allows use of mouse wheel. By default, eventually combined with shift and control, scroll chat area, zoom in/out the radar, zoom in/out the window view

Post Reply