#include <SDL.h>#include "sdl/keysymbols.h"Include dependency graph for events.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs | |
| typedef int | tkey |
Functions | |
| bool | setEventRouting (bool queue, bool legacy) |
| Defines what happens with the SDL events. | |
| bool | legacyEventSystemActive () |
| int | initializeEventHandling (int(*fn)(void *), void *data) |
| void | exit_asc (int returnresult) |
| void | mousevisible (int an) |
| int | getmousestatus () |
| void | setmouseposition (int x, int y) |
| void | setnewmousepointer (void *picture, int hotspotx, int hotspoty) |
| int | mouseinrect (int x1, int y1, int x2, int y2) |
| int | mouseinrect (const tmouserect *rect) |
| void | mouseintproc2 (void) |
| char | skeypress (tkey keynr) |
| char * | get_key (tkey keynr) |
| tkey | r_key (void) |
| int | rp_key (void) |
| int | keypress (void) |
| void | wait (void) |
| tkey | char2key (int ch) |
| void | getkeysyms (tkey *keysym, int *keyprnt) |
| void | ndelay (int time) |
| void | starttimer (void) |
| char | time_elapsed (int time) |
| int | releasetimeslice (void) |
| int | getTicker () |
| bool | getQueuedEvent (SDL_Event &event) |
| if the events are being queue, get one. | |
| bool | peekEvent (SDL_Event &event) |
| gets the next event without removing it from the queue. | |
| void | setMouseUpdateFlag (const bool *flag) |
| passes a references which' value determines if the mouse cursor is hidden on screen updates | |
Variables | |
| SDL_mutex * | eventHandlingMutex |
| bool | redrawScreen |
| volatile tmousesettings | mouseparams |
| int | exitprogram |
| volatile int | ticker |
|
|
|
|
|
Definition at line 244 of file events.cpp. References ct_invvalue. Referenced by tdlgengine::addbutton(). |
|
|
Definition at line 645 of file events.cpp. References closeEventThread. Referenced by main(). |
|
|
|
|
||||||||||||
|
Definition at line 206 of file events.cpp. References keyboardmutex, keybuffer_prnt, keybuffer_sym, releasetimeslice(), and ticker. Referenced by tdialogbox::intedit(), tdialogbox::run(), and tdialogbox::stredit(). |
|
|
Definition at line 79 of file events.cpp. Referenced by tdialogbox::buildgraphics(), tdlgengine::buttonpressed(), tdialogbox::copyvirtualframebuf(), tdialogbox::done(), tdialogbox::execbutton(), tstringselect::run(), tdialogbox::run(), and tdialogbox::showbutton(). |
|
|
if the events are being queue, get one.
Definition at line 690 of file events.cpp. References eventQueue, and eventQueueMutex. Referenced by EventSupplier::PollEvent(), and EventSupplier::WaitEvent(). |
|
|
Definition at line 558 of file events.cpp. Referenced by eventthread(). |
|
||||||||||||
|
Definition at line 593 of file events.cpp. References closeEventThread, eventHandlingMutex, eventQueueMutex, eventthread(), gamethread(), graphicsQueueMutex, keyboardmutex, tmousesettings::xsize, and tmousesettings::ysize. Referenced by main(). |
|
|
Definition at line 146 of file events.cpp. References keyboardmutex, and keybuffer_sym. Referenced by tdialogbox::intedit(), tdialogbox::run(), tdialogbox::stredit(), and trunreplay::wait(). |
|
|
Definition at line 684 of file events.cpp. References _fillLegacyEventStructures. Referenced by choice_dlg(), chooseString(), displaymessage(), viewmessage(), and viewtextquery(). |
|
|
Definition at line 116 of file events.cpp. References tmousesettings::x, and tmousesettings::y. |
|
||||||||||||||||||||
|
Definition at line 108 of file events.cpp. Referenced by tdialogbox::execbutton(), tdialogbox::intedit(), tgiveunitawaydlg::run(), tchoosetechnology::run(), and tdialogbox::stredit(). |
|
|
|
|
|
|
Definition at line 280 of file events.cpp. References releasetimeslice(), and ticker. |
|
|
gets the next event without removing it from the queue.
Definition at line 703 of file events.cpp. References eventQueue, and eventQueueMutex. Referenced by EventSupplier::PeepEvent(). |
|
|
Definition at line 158 of file events.cpp. References keyboardmutex, keybuffer_prnt, keybuffer_sym, releasetimeslice(), and ticker. |
|
|
|
Definition at line 182 of file events.cpp. References keyboardmutex, keybuffer_prnt, keybuffer_sym, releasetimeslice(), and ticker. |
|
||||||||||||
|
Defines what happens with the SDL events.
Definition at line 666 of file events.cpp. References _fillLegacyEventStructures, _queueEvents, eventQueue, and eventQueueMutex. Referenced by ASC_PG_App::enableLegacyEventHandling(), tdialogbox::tdialogbox(), and tdialogbox::~tdialogbox(). |
|
||||||||||||
|
Definition at line 99 of file events.cpp. |
|
|
passes a references which' value determines if the mouse cursor is hidden on screen updates
Definition at line 69 of file events.cpp. References mouseUpdateFlag. Referenced by ASC_PG_App::ASC_PG_App(). |
|
||||||||||||||||
|
Definition at line 104 of file events.cpp. |
|
|
Definition at line 230 of file events.cpp. Referenced by tviewtextwithscrolling::checkscrolling(), GuiFunctions::Descend::execute(), GuiFunctions::Ascend::execute(), GuiFunctions::Movement::execute(), CargoGuiFunctions::Movement::execute(), and researchinfo(). |
|
|
Definition at line 293 of file events.cpp. |
|
|
Definition at line 298 of file events.cpp. |
|
|
Definition at line 239 of file events.cpp. |
|
|
Definition at line 38 of file events.cpp. Referenced by initializeEventHandling(), and processEvents(). |
|
|
Definition at line 53 of file events.cpp. Referenced by processEvents(). |
|
|
|
Definition at line 63 of file events.cpp. Referenced by ASC_PG_App::eventIdle(), processEvents(), and releasetimeslice(). |
|
1.4.2