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 »

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 »

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 »

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 »

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: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

the mousewheel is not supported.
ImageJeffM
UnCoupDeMontreal
Private
Private
Posts: 4
Joined: Fri Dec 24, 2004 1:16 am

Post by UnCoupDeMontreal »

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: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

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

Post by Scorch »

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 »

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 »

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 »

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 »

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