summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.h
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-04-01textscreen: Use safe string functions.Simon Howard
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372.
2012-02-03Support Unicode input by mapping typed Unicode characters >= 128 up intoSimon Howard
a higher range to avoid conflicts with Doom's key constants. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2490
2011-04-11Allow the shift key to be held down when changing key/mouse/joystickSimon Howard
bindings to prevent bindings to the same key from being cleared (thanks myk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2325
2011-03-22Fix scrollbars so that clicks scroll the pane to a location that matchesSimon Howard
the clicked location. Interpret mousewheel events so that scroll panes can be scrolled. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2307
2009-09-30Change British English spellings to American English, for consistency.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1699
2007-07-29Allow more than the standard three mouse buttons to be defined throughSimon Howard
setup (hopefully) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 939
2007-06-04Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific APISimon Howard
functions, while keeping txt_main.h for the common API. Add TXT_SDL_SetEventCallback to allow programs to intercept SDL events in the textscreen main loop. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 892
2007-05-24Add TXT_SetWindowTitle function to wrap SDL_WM_SetCaption, so thatSimon Howard
txt_desktop.c doesn't need to call SDL functions directly. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 885
2007-03-27<SDL.h> -> "SDL.h"Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 866
2007-03-09Fix discrepancy between Doom and setup program when prompting for keys.Simon Howard
Add the ability to enable/disable key mappings so that the raw key can be read in setup, exactly the same way that it is in Doom. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 846
2006-09-19Fix textscreen warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 626
2006-09-09Include SDL.h in the textscreen headers; the SDL headers need to be Simon Howard
included where main() is defined. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 600
2006-08-31Add missing copyright notices to textscreen and setup files.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 590
2006-08-31More efficient TXT_Sleep function that puts the textscreen code to sleepSimon Howard
until an event is received or the screen needs to blink. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 570
2006-06-02textscreen: Rejig how the entire drawing process works. Add a recursiveSimon Howard
layout method that assigns the position and size of widgets for the whole window before drawing. Add another method that responds to mouse button presses. Allow windows to have no title bar by specifying NULL as the title. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 547
2006-05-23Add TXT_GetKeyDescription() to provide descriptions of key codes.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 513
2006-01-13Textscreen getchar() function; remove SDL code from I_Endoom.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 289
2005-10-02Text mode emulation codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 146