Compare commits

..

2 commits

Author SHA1 Message Date
hippoz
c05a23912f
add sensitivity option 2022-08-26 16:41:57 +03:00
hippoz
c0c1f84adb
remove old import 2022-08-26 16:41:43 +03:00
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,8 @@
const HOLDING_THRESHOLD_MS = 300; const HOLDING_THRESHOLD_MS = 300;
const SCROLL_X_DAMPENING = 0.02; const SCROLL_X_DAMPENING = 0.02;
const SCROLL_Y_DAMPENING = 0.09; const SCROLL_Y_DAMPENING = 0.09;
const MOVE_X_MULTIPLIER = 1.64;
const MOVE_Y_MULTIPLIER = 1.64;
class TouchpadController { class TouchpadController {
constructor(connection) { constructor(connection) {
@ -119,7 +121,7 @@ class TouchpadController {
this._sendSingleClick("right"); this._sendSingleClick("right");
} else { } else {
if ( if (
this._sendRelativeMouseMovement(deltaX, deltaY) this._sendRelativeMouseMovement(deltaX * MOVE_X_MULTIPLIER, deltaY * MOVE_Y_MULTIPLIER)
) { ) {
shouldMarkTouchesAsMoved = true; shouldMarkTouchesAsMoved = true;
} }

View file

@ -1,4 +1,3 @@
import "simple-keyboard/build/css/index.css";
import "./styles/main.css"; import "./styles/main.css";
import App from "./App"; import App from "./App";