raze-gles/polymer/eduke32/source/jmact
hendricks266 cfedcbd7d7 Rewrite and unify the handling of the scrollwheel between layers, fixing it in the editor's 2D mode and tile selector under SDL.
The scrollwheel is unique among PC input because it has no innate "hold length". Previously, the layers gave the mousewheel a fake hold length to allow the not-necessarily-synchronous game/editor code to pick up the input before the layers marked it as "no longer pressed". This passed under Windows, but it didn't slide under SDL.

Besides the two problems listed above, it also potentially limited the rate of weapon selection, where scrolling too fast would not register every clicks. [Unrelatedly, this is still the case when you scroll faster than the game's own tickrate, but addressing that would require rewriting input handling to go through a list of "events" for each tic instead of looking at overall pressed/unpressed states.]

git-svn-id: https://svn.eduke32.com/eduke32@4200 1a8010ca-5511-0410-912e-c29ae57300e0
2013-12-20 07:24:09 +00:00
..
_control.h Remove some duplicate or unused control layer defines. 2013-02-25 15:31:22 +00:00
_scrplib.h scriplib: attach const qualifiers to appropriate function input arguments. 2013-02-28 17:30:08 +00:00
animlib.c Add rudimentary sanity checks when playing ANM files. 2013-03-31 18:57:59 +00:00
animlib.h Add rudimentary sanity checks when playing ANM files. 2013-03-31 18:57:59 +00:00
control.c Rewrite and unify the handling of the scrollwheel between layers, fixing it in the editor's 2D mode and tile selector under SDL. 2013-12-20 07:24:09 +00:00
control.h Fix bound keys' commands being truncated in settings.cfg, control* cleanup. 2012-11-18 15:44:18 +00:00
file_lib.c Replace a couple uses of S_IREAD with our platform-aware BS_IREAD 2012-06-02 00:02:57 +00:00
file_lib.h Work-in-progress adjustment to the C code to compile under C++. It builds for me without errors using Win32 MinGW-GCC, but it still generates warning soup. No guarantees about MSVC or anything using SDL. Enable C++ by building with CPLUSPLUS=1. C remains the default and should compile with no change in setup. 2012-11-05 02:49:08 +00:00
joystick.c Massive menu input control revamp/cleanup/factor. (added: input.[ch]) 2012-06-03 16:11:22 +00:00
joystick.h Work-in-progress adjustment to the C code to compile under C++. It builds for me without errors using Win32 MinGW-GCC, but it still generates warning soup. No guarantees about MSVC or anything using SDL. Enable C++ by building with CPLUSPLUS=1. C remains the default and should compile with no change in setup. 2012-11-05 02:49:08 +00:00
keyboard.c Further minor MACT cleanups 2012-11-17 16:48:11 +00:00
keyboard.h Fix a keyboard scancode oversight I introduced with my changes last night, apparently caused crashes 2012-11-18 00:07:44 +00:00
mathutil.c mostly multiplayer fixes among other things 2010-07-19 15:14:00 +00:00
mathutil.h Guard macros.h by #ifndef/#define, remove two decls of nonexistent functions. 2012-11-25 13:18:36 +00:00
mouse.c Replace a few one line MACT mouse functions with macros that do the same thing 2012-11-17 16:48:05 +00:00
mouse.h Replace a few one line MACT mouse functions with macros that do the same thing 2012-11-17 16:48:05 +00:00
scriplib.c Fix loading of a user's previous "SelectedGRP" file. 2013-03-28 09:04:54 +00:00
scriplib.h Fix loading of a user's previous "SelectedGRP" file. 2013-03-28 09:04:54 +00:00