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

Application Event System Discussion #175

Closed
AlexvZyl opened this issue Dec 14, 2021 · 1 comment
Closed

Application Event System Discussion #175

AlexvZyl opened this issue Dec 14, 2021 · 1 comment
Assignees
Labels
Application Issues regarding the application in general.

Comments

@AlexvZyl
Copy link
Owner

AlexvZyl commented Dec 14, 2021

We need to implement a better way of handling events in Lumen and this is going to tie in directly with #98.

The methodology of how we do it now is good, instead of immediately calling functions that handle events (and blocking the application) we set flags (and populate structs with data regarding the latest instance of the event) and then handle them once per frame. This also prevents us from handling events more than we need to.

This is going to includes things such as:

  • Mouse inputs
  • Key inputs
  • File events (Loading & saving)
  • File drop event
  • Window close
  • Resize event
  • Window Focus (and de-focus)
@AlexvZyl AlexvZyl added the Application Issues regarding the application in general. label Dec 14, 2021
@AlexvZyl AlexvZyl pinned this issue Dec 14, 2021
@AlexvZyl AlexvZyl changed the title Lumen Event System Lumen Event System Discussion Dec 14, 2021
@AlexvZyl
Copy link
Owner Author

AlexvZyl commented Dec 14, 2021

I think it would be a good idea for each window to have its own event callback/queue/buffer/states, depending on how we decide on implementing events.

@AlexvZyl AlexvZyl changed the title Lumen Event System Discussion Application Event System Discussion Dec 14, 2021
Repository owner locked and limited conversation to collaborators Dec 14, 2021
@AlexvZyl AlexvZyl converted this issue into discussion #180 Dec 14, 2021
@AlexvZyl AlexvZyl unpinned this issue Dec 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Application Issues regarding the application in general.
Projects
None yet
Development

No branches or pull requests

2 participants