RblSb

Results 153 comments of RblSb

Yep, there is can be another events after nils, but probably because more time is spending to event waiting (and why second option works better). Everyone else uses simple while,...

Like this: https://gist.github.com/MasonRemaley/af5e1d3c538aedbfd6c726762205b1fb

I guess first thing is that you need to run `update` cycle in separated thread, and use `[myapp run]` instead of `while` for input handling. Also there is way to...

I don't really use macos backend, so you can spend time to something more fun/useful first. I also found that glfw/sdl uses `nextEventMatchingMask` too, so maybe problem with something else.

`kha.input.Mouse.get().hideSystemCursor() / showSystemCursor()` works as expected in Chrome 68, not sure about v70. `lock()` works only after user gestures, in events like `onMouseDown/onMouseUp/onKeyDown`. We can add a Kha error message...

Hm, we already have `notifyOfMouseLockChange(func: Void -> Void, error: Void -> Void)`. Chrome issues an error object with the only special property `isTrusted: true`, which does not give anything. I...

In HTML5, you can call Pointer Lock only after user events (mouse/keyboard/etc). Please check if [this html5 demo](https://github.com/RblSb/Pong360) worked for you. If not, please tell your browser too.

Pointer lock on macos requires `kinc_mouse_set_position` implementation, which requires internal window handle like on windows (to get x/y window offset). https://github.com/Kode/Kinc/blob/naster/Backends/System/macOS/Sources/Kore/Input/Mouse.mm#L28 https://github.com/Kode/Kinc/blob/master/Backends/System/Windows/Sources/Kore/Window.c#L38

In the fontGlyphs array, the numbers must go from the smaller to the larger and do not repeat (need not forget to document it). But if the problem is not...