Fix unset audio device; Force never cursor lock; Cleanup

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-18 02:57:42 +01:00
parent d11db41c43
commit 16be4fcabb
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 17 additions and 51 deletions

View file

@ -197,7 +197,7 @@ protected:
{
const ScopedContext sc(this);
rack::math::Vec mousePos = rack::math::Vec(ev.pos.getX(), ev.pos.getY());
rack::math::Vec mousePos = rack::math::Vec(ev.pos.getX(), ev.pos.getY()).div(1).round();
// .div(ctx->window->pixelRatio / ctx->window->windowRatio).round();
rack::math::Vec mouseDelta = mousePos.minus(fLastMousePos);
@ -206,7 +206,7 @@ protected:
if (ctx->window->internal->ignoreNextMouseDelta)
{
ctx->window->internal->ignoreNextMouseDelta = false;
mouseDelta = math::Vec();
mouseDelta = rack::math::Vec();
}
*/