mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Make quality settings detail only and fold ctrl-wheel zoom into the camera's zoom inputs
Quality no longer switches clouds or water (their ports are gone) and its atmosphere and post-processing settings are low or high detail; whether the sky or a pass shows stays with globe.sky and effects. The separate input.ctrlWheelZoom switch is gone: 'ctrlWheel' in the camera's zoomInputs also relays trackpad pinches, which the application turns on.
This commit is contained in:
1 parent
46cdeba7fa
commit
7a376ebefc
15 files changed
+87
-114
No files matched your search
@@ -20,8 +20,6 @@ const near = (a, b) => Math.hypot(a.x - b.x, a.y - b.y) <= 4;
|
||||
* has, beyond `select` and `dblclickFollow` (always listed).
|
||||
* @param {(name: string, enabled: boolean) => void} [options.onBehaviour]
|
||||
* Told when a behaviour turns off (first hold) or back on (last release).
|
||||
* @param {(enabled: boolean) => void} [options.onCtrlWheelZoom] Told when
|
||||
* `ctrlWheelZoom` is set.
|
||||
* @param {Record<string, boolean>} [options.supported] Behaviours the
|
||||
* renderer cannot do, as `false`: listed, but reported disabled.
|
||||
*/
|
||||
@@ -30,7 +28,6 @@ export function createInputRouter({
|
||||
suspendCamera,
|
||||
behaviours: extra = [],
|
||||
onBehaviour = () => {},
|
||||
onCtrlWheelZoom = () => {},
|
||||
supported = {},
|
||||
}) {
|
||||
const listeners = [];
|
||||
@@ -88,7 +85,6 @@ export function createInputRouter({
|
||||
const leaseOf = (entry) =>
|
||||
typeof entry.lease === 'function' ? entry.lease() : entry.lease;
|
||||
|
||||
let ctrlWheelZoom = false;
|
||||
const port = {
|
||||
on(type, cb, opts = {}) {
|
||||
const entry = { type, cb, lease: opts.lease ?? null, live: true };
|
||||
@@ -121,13 +117,6 @@ export function createInputRouter({
|
||||
isPointerFree: () => currentLease === null,
|
||||
suspendCameraControls: (reason) => suspendCamera(String(reason)),
|
||||
behaviours,
|
||||
get ctrlWheelZoom() {
|
||||
return ctrlWheelZoom;
|
||||
},
|
||||
set ctrlWheelZoom(value) {
|
||||
ctrlWheelZoom = Boolean(value);
|
||||
onCtrlWheelZoom(ctrlWheelZoom);
|
||||
},
|
||||
};
|
||||
|
||||
/** Who a new press belongs to, decided from its `down`. */
|
||||
|
||||
Reference in new issue
Block a user