zicodxx
|
97f2bb11cb
|
Stability fixes: avoid somfusions with same named variables in one function; Properly sort out players from player list that use too long filenames; Removed call for gr_set_fontcolor in kconfig where no canvas is set, causing crashes when trying to reassign a button, key or axis
|
2011-07-13 23:26:43 +02:00 |
|
zicodxx
|
89ef310ec6
|
Added SDLK_WORLD_** symbols to keyboard array to enable layout specific keys and make the game more flexible
|
2011-04-21 21:22:46 +02:00 |
|
zicodxx
|
96782e092a
|
Added event types for all input actions; Rewrote kconfig code to work with events; static defined inputs will not trigger kconfig-mapped inputs anymore; Simplified keyboard, mouse and joystick code a lot due to event-based handling; Added function to toggle SDL key repeats on and off; Put timer_update() to event_process; Removed return when event_poll() is idle to get cursor hiding to work again; Added a small delay between cursoe hiding and re-enabling to cursor will not accidentially enable by SDL event centering cursor while hiding
|
2011-02-02 01:36:49 +01:00 |
|
Chris Taylor
|
030aef43e3
|
For editor, replace use of ui_mega_process() with event_process(), with the editor's own default event handler; add EVENT_MOUSE_MOVED event with event_mouse_get_delta() accessor; add event_key_get() to replace ugly casting; rename mouse_get_button() with event_mouse_get_button() to keep with name convention; only send idle events when there are no input events so editor still works properly (or the same anyway); add and use event_send() function for input events (including idle)
|
2011-01-14 17:51:13 +08:00 |
|
zicodxx
|
3adc5fe77a
|
Saving weapon keys in PLX like in D1X-Rebirth; Added Cycle Primary/Secondary for Mouse which makes wheel axis cycling unnecessary and also let Weapon Keys be assigned to a Mouse button; If GameArg.NoStickyKeys do flush these keys so they can be used as normal game keys - otherwise ban them; Fixed crash when reassigning mouse button greater than 3; Joystick/Mouse function taking button as argument now check for sanity of this value so they can safely be used in kconfig code and deal with unassigned key values
|
2011-01-03 01:09:09 +01:00 |
|
zicodxx
|
8dcbb3bd81
|
Introduced function key_ismodlck to get the status of modifier keys or sticky keys; Let sticky keys survive flush so we can accurately use their real states; Added key repeating via SDL; Depending on status of KEY_NUMLOCK keypad will either be used as numerical or arrow input in menus; Fixed small typo for mouse.h include in credits.c
|
2011-01-02 18:07:44 +01:00 |
|
zicodxx
|
3bcb0ecdde
|
Introduced new data type fix64 to be used for new timers which can last 4462756 years instead of 9 hours; Introduced new timer functions to update and query program time; Used new timer all over the program except GameTime (which comes next)
|
2010-12-11 00:18:17 +01:00 |
|
Chris Taylor
|
3ef5dff1a6
|
Add CON_DEBUG level con_printf's for basic events (not EVENT_IDLE or EVENT_DRAW though)
|
2010-12-05 21:51:34 +08:00 |
|
zicodxx
|
f2df60a12d
|
Only use one single call of timer_get_fixed_seconds() for whole SDL event loop; Abstracted grabbing mouse and mouse cursor toogle to mouse functions instead of calling SDL functions inside of non-arch code; Automatically hide mouse cursor if it's not used for more than 3 seconds; Reworked placement of mouse grabbing toggle; Do not read any mouse input if -nomouse is given
|
2010-07-16 11:07:42 +00:00 |
|
zicodxx
|
e5130c21b5
|
Also send event KEY_COMMAND if there's somethig in our Unicode buffer since not every Unicode key corresponds to a keysym on every layout
|
2010-07-08 10:55:20 +00:00 |
|
kreatordxx
|
f1fb7c4ac0
|
Comment out redundant calls to event_poll, fixing rapid bomb dropping bug (and probably others)
|
2010-05-03 10:47:10 +00:00 |
|
kreatordxx
|
dae5968170
|
Add a default event handler for screenshots, entering debugger, Redbook repeating etc
|
2010-04-02 05:01:08 +00:00 |
|
kreatordxx
|
726bd6ee20
|
Move call to callback outside of loop in key_handler, now deleting a second demo using CTRL-D actually works
|
2010-02-25 04:27:15 +00:00 |
|
kreatordxx
|
5ac8cf2b2d
|
Send EVENT_KEY_COMMAND from key.c; add EVENT_NEWMENU_DRAW for state restore; place newmenu and listbox calls to callback so they can override ALL newmenu behaviour
|
2010-01-30 03:24:19 +00:00 |
|
kreatordxx
|
b835361586
|
Make newmenus into windows, allowing redrawing of automap and game to take place outside of newmenu.c; remove redundant keyd_repeat
|
2009-12-26 01:08:57 +00:00 |
|
kreatordxx
|
bf512bb9ec
|
Remove redundant conf.h directives
|
2009-04-30 13:01:31 +00:00 |
|
kreatordxx
|
777f76aedf
|
Get Mac command keys working, MACINTOSH code cleanup, update Xcode project
|
2008-12-07 12:26:43 +00:00 |
|
zicodxx
|
02b1872aa9
|
Yet another UNICODE overhaul - Using seperate buffer for UNICODE chars and only use it in key_ascii() while still using keysyms for the rest of the program so we do not screw up readings by key values altered by modifers - possibly still room to optimize
|
2008-11-17 23:38:43 +00:00 |
|
zicodxx
|
1de53497b2
|
Using a clean flow for closing game data at the end of main() instead of using atexit; Now only use atexit for SDL stuff, error, mem, console (and editor which we do later); Small Cleanup
|
2008-11-14 16:56:40 +00:00 |
|
zicodxx
|
2004be28a8
|
Only read UNICODE values from 31 to 254 to make sure we do not read any non-printable characters and prefer the keysym that way; Added left and right Command Key for MAC Keyboards
|
2008-11-07 11:09:29 +00:00 |
|
zicodxx
|
b914c8dc2f
|
Make sure that if we use UNICODE, we always take non-control type chars and - as we only want lowercase letters - convert chars if shift is pressed
|
2008-11-01 02:49:29 +00:00 |
|
zicodxx
|
9cc62df60d
|
Always use printable UNICODE characters for the key_handler and included routine to assign key symbols to UNICODE so we get an equivalent of a Key-Released state which we need for the Keyboard buffer; Removed the shifted_ascii_value field from key_props and stored all usable characters in seperate rows; Improves Text input and makes keyboard mapping independent from keyboard layout without breaking any compability
|
2008-10-31 16:57:36 +00:00 |
|
zicodxx
|
e6ec09869e
|
Some code improvements and small fixes
|
2008-05-08 18:29:52 +00:00 |
|
zicodxx
|
9709081498
|
Return unicode characters in key_to_ascii for non-EN keyboard layouts; Fixed sound menu issue if not compiled with SDL_mixer; switched -ip_norelay to -ip_relay since it's not tested enough; Renamed jukebox_free() to jukebox_unload() to stay with naming-convention
|
2008-05-07 14:11:30 +00:00 |
|
zicodxx
|
b772706508
|
Return unicode characters in key_to_ascii for non-EN keyboard layouts; Fixed sound menu issue if not compiled with SDL_mixer; switched -ip_norelay to -ip_relay since it's not tested enough; Renamed jukebox_free() to jukebox_unload() to stay with naming-convention
|
2008-05-07 14:02:01 +00:00 |
|
zicodxx
|
df7a1ca071
|
Introduced timer_delay2 as replacement for timer_delay to sleep according to given FPS rate considering calc time between frames
|
2007-11-21 12:46:09 +00:00 |
|
zicodxx
|
e955dff203
|
Updated docs; Removed GP2X support since I won't support this device anymore
|
2007-09-28 22:44:04 +00:00 |
|
md2211
|
a0b4cac982
|
* Removed executable flag on most files
* Reverted value of SOUND_MAX_VOLUME
|
2007-09-21 19:06:05 +00:00 |
|
kreatordxx
|
4ff4ddd0a3
|
include SDL/SDL.h for all platforms and physfs/physfs.h for Mac OS X to avoid having to add some hard-coded include paths
|
2007-04-09 02:41:45 +00:00 |
|
zicodxx
|
effde7d236
|
Added ENTER as Game key
|
2007-02-19 23:28:43 +00:00 |
|
zicodxx
|
3d3188473b
|
GP2X handheld support; added SConstruct file (MAC support incomplete); code optimisations for software renderer; fixed memleaks
|
2006-12-19 02:25:50 +00:00 |
|
zicodxx
|
b94413b91b
|
initial import
|
2006-03-20 17:12:09 +00:00 |
|