Bug 3626 - The setenv console command is created after the *.cfg files are read
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-05-04 12:03 EDT by Matthias
Modified: 2009-10-12 12:04:07 EDT
1 user (show)

See Also:



Description Matthias 2008-05-04 12:03:41 EDT
The setenv console command is created in cl_main.c long *after* {default,q3config,autoexec}.cfg have been read, rendering it rather useless for setting up the environment from inside the engine.

I have a need for it to set the SDL_HAS3BUTTONMOUSE environment variable which will turn of emulation of a second and third mouse button (using Command- and Option-Click) inside SDL on a Macintosh. This coupling of mouse button and modifier isn't useful in a FPS and makes it impossible to assign an independent function to Command or Option without affecting the mouse button (and is different from the original Quake 3).

My workaround is to misuse the activeAction variable in autoexec.cfg:
set activeAction setenv SDL_HAS3BUTTONMOUSE !
Comment 1 Thilo Schulz 2009-10-12 12:04:07 EDT
Your prayers have been heard and answered in svn rev. 1659