Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

lunaris events generic_event_handler

Lohk edited this page Oct 7, 2021 · 1 revision

EventsGeneric Event Handler

⇨ About

Generic Event Handler is a generic combo of events. If you want to get the raw events in a single easy to use object, this is the one.

⇨ Interface

Function About
generic_event_handler() Constructor starts thread
install_keyboard() : void Install keyboard to this queue
install_mouse() : void Install mouse to this queue
install_joystick() : void Install joystick to this queue
install_touch() : void Install touch to this queue
install_other(ALLEGRO_EVENT_SOURCE*) : void Add another event source to this queue
uninstall_keyboard() : void Remove keyboard events from this queue
uninstall_mouse() : void Remove mouse events from this queue
uninstall_joystick() : void Remove joystick events from this queue
uninstall_touch() : void Remove touch events from this queue
uninstall_other(ALLEGRO_EVENT_SOURCE*) : void Remove specific event source from this queue
hook_event_handler(const std::function<void(const ALLEGRO_EVENT&)>) : void Hook a function to handle events (when they happen)
unhook_event_handler() : void Remove the hooked function
  • Lunaris (rebrand & dev)
  • LSWv5
    • _Macros
    • Handling
    • Tools
      • AdvancedShared
      • Any
      • Common
      • CString
      • FastFunction
      • Future
      • Hash
      • Launcher
      • Resource
      • Stopwatch
      • SuperFunctionalMap
      • SuperMap
      • SuperMutex
      • SuperPair
      • SuperResource
      • SuperThread
    • Interface
      • Bitmap
      • Camera
      • Color
      • Config
      • Connection
      • DelayedTask
      • Display
      • Downloader
      • EventCustom
      • Events
      • EventTimer
      • Font
      • Logger
      • Mixer
      • PathManager
      • Sample
      • SmartFile
      • Target
      • Track
      • Vertex
      • Voice
    • Work
      • Block
      • BubbleFX
      • Button
      • Collisioner
      • GameCore
      • ProgressBar
      • ShineFX
      • Sprite
      • Text
      • TextInput
Clone this wiki locally