-
Notifications
You must be signed in to change notification settings - Fork 13
Window events
This category contains types/functions for handling window events. More...
| Type | Name |
|---|---|
| struct |
fplEvent A structure containing event data for all event types (Window, Keyboard, Mouse, etc.). More... |
| struct |
fplKeyboardEvent A structure containing keyboard event data (Type, Keycode, Mapped key, etc.). More... |
| struct |
fplMouseEvent A structure containing mouse event data (Type, Button, Position, etc.). More... |
| struct |
fplWindowDropFiles A structure containing number and dropped files information. More... |
| struct |
fplWindowEvent A structure containing window event data (Size, Position, etc.). More... |
| Type | Name |
|---|---|
| fpl_platform_api bool |
fplPollEvent (fplEvent *ev) Polls the next event from the internal event queue or from the OS, handles them, and removes it from the queue. |
| fpl_platform_api void |
fplPollEvents (void) Polls all the events from the OS and clears the internal event queue. |
This category contains types/functions for handling window events.
enum fplEventTypeAn enumeration of event types (Window, Keyboard, Mouse, etc.).
| Name | Description |
|---|---|
| fplEventType_None | None event type. |
| fplEventType_Window | Window event. |
| fplEventType_Keyboard | Keyboard event. |
| fplEventType_Mouse | Mouse event. |
| fplEventType_Gamepad | Gamepad event. |
Definition at line 9822 of file final_platform_layer.h.
enum fplKeyboardEventTypeAn enumeration of keyboard event types.
| Name | Description |
|---|---|
| fplKeyboardEventType_None | None key event type. |
| fplKeyboardEventType_Button | Key button event. |
| fplKeyboardEventType_Input | Character was entered. |
Definition at line 9758 of file final_platform_layer.h.
enum fplMouseEventTypeAn enumeration of mouse event types (Move, ButtonDown, etc.).
Definition at line 9788 of file final_platform_layer.h.
enum fplWindowEventTypeAn enumeration of window event types (Resized, PositionChanged, etc.).
Definition at line 9695 of file final_platform_layer.h.
fpl_platform_api bool fplPollEvent ( fplEvent * ev)Polls the next event from the internal event queue or from the OS, handles them, and removes it from the queue.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | ev | Reference to the event structure fplEvent. |
Returns: Returns false when there are no events left, true otherwise.
See also: Polling the window events
fpl_platform_api void fplPollEvents ( void )Polls all the events from the OS and clears the internal event queue.
Warning: Don't use this function if you want to handle the events. Use
fplPollEvent() instead!
See also: Ignoring the events
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities