summaryrefslogtreecommitdiff
path: root/src/m_controls.c
AgeCommit message (Collapse)Author
2014-04-19joystick: Add joystick button to toggle menu.Simon Howard
When using a joystick or gamepad it's nice to be able to bring up the menu without having to reach for the keyboard. This makes modern gamepads more useful/usable.
2014-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2014-03-30Eliminate some uses of sprintf() from common code.Simon Howard
As part of this, add DIR_SEPARATOR_S as a string version of the DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated on the C heap rather than the zone heap. This is a first step towards fixing #371.
2014-03-23Set default for key_menu_screenshot to 0.Simon Howard
In #364 I recommended -1 as the default to avoid taking screenshots in some situations where a key event is posted for key 0. It turns out that wasn't such a great idea, as -1 is not parsed properly by the config parser, and is shown as ??-1 in the setup tool. Default to zero instead, and add guards to prevent screenshots being taken by mistake. Thanks to Alexandre-Xavier for pointing this out.
2014-03-19Initialize key_menu_screenshot with -1.Fabian Greffrath
2014-03-18Add a dedicated key for taking screenshots.Fabian Greffrath
2014-03-13Allow to rebind artifact keys in Hexen.Fabian Greffrath
2013-08-11Remove Windows CE support.Simon Howard
What support exists is for obsolete devices I no longer possess; I've never been contacted about the port and it's been several years since I even bothered to build a new version. All the extra overrides are clutter that can just be removed. Subversion-branch: /branches/v2-branch Subversion-revision: 2615
2010-09-19Massive work on the HUD. Multiline messages now work properly and areJames Haley
wrapped at or near the screen boundary. Subversion-branch: /branches/strife-branch Subversion-revision: 2113
2010-09-18Tons of warnings fixed - now only 7 warnings at warning level 3, andJames Haley
most of those are outside of our own code (get on those signed/unsigned mismatches in the midi code, fraggle ;) Subversion-branch: /branches/strife-branch Subversion-revision: 2110
2010-09-10Post-merge fixes: Created project for OPL library. Fixed OPL library toJames Haley
not use GNU C-isms such as inline keyword, declaration/statement mixing, and strange calling convention syntax for import function pointers. Fixed critical buffer overflow in M_BindChatControls - should be back-merged immediately. Added autogenerated directories *back* to ignore list. Subversion-branch: /branches/strife-branch Subversion-revision: 2052
2010-09-09Merge from raven-branch.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 2051
2010-09-02Added Strife keys to configuration. Note that this *depends* on theJames Haley
current behavior of Choco Doom in treating configuration variable strings as case-sensitive, because these are the real values used by Rogue in their config, and they differ from some Heretic/Hexen config strings only by case. Subversion-branch: /branches/strife-branch Subversion-revision: 2000
2010-08-31Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1987
2009-06-13Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1601
2009-06-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1596
2009-06-09Move menu/map/weapon key variables into common code, and bind variables.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1581
2008-11-02Fix up raven-branch copyright notices.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1375
2008-10-08Switch configuration file code to common configuration file code, andSimon Howard
remove old code. Subversion-branch: /branches/raven-branch Subversion-revision: 1338
2008-09-28Move novert support into common i_video.c code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1302
2008-09-23Add heretic key controls to config file list. Add key binding code toSimon Howard
heretic/d_main.c and change g_game.c to use the common definitions. Subversion-branch: /branches/raven-branch Subversion-revision: 1265
2008-09-11Refactor configuration file system to allow configuration file variablesSimon Howard
to be bound in a distributed fashion around the program. Remove dependency of m_config.c on doom/. Subversion-branch: /branches/raven-branch Subversion-revision: 1222
2008-09-10Split out variables for controls into common m_controls.c.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1219