mirror of https://github.com/adamdruppe/arsd.git
Fix pixelpresenter not passing along event-handlers
This commit is contained in:
parent
1d2e57f61a
commit
3f0e52f875
|
@ -43,6 +43,7 @@ import arsd.simpledisplay;
|
|||
- or something similar
|
||||
- to ensure `Scaling.integer` doesn’t break “unexpectedly”
|
||||
- Hybrid scaling mode: integer up, FP down
|
||||
- Fix timing
|
||||
*/
|
||||
|
||||
///
|
||||
|
@ -614,8 +615,9 @@ final class PixelPresenter {
|
|||
///
|
||||
int eventLoop(T...)(T eventHandlers) if (T.length == 0 || is(T[0] == delegate)) {
|
||||
return _pro.window.eventLoop(
|
||||
16,
|
||||
16, // ~60 FPS
|
||||
delegate() { eventHandlers[0](); _pro.window.redrawOpenGlSceneSoon(); },
|
||||
eventHandlers[1 .. $],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue