diff --git a/src/client/camera.ts b/src/client/camera.ts index 5b7b9ed..426af3b 100644 --- a/src/client/camera.ts +++ b/src/client/camera.ts @@ -25,7 +25,7 @@ export function updateCamera(context: any) { if (context.params.keyboard.space) { context.params.camPos.y -= 1; } - if (context.params.keyboard.control) { + if (context.params.keyboard.shift) { context.params.camPos.y += 1; } if (context.params.keyboard.w) { diff --git a/src/client/init.ts b/src/client/init.ts index f9669de..a5fd6e9 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -40,7 +40,7 @@ export function initParams(context: any) { s: false, d: false, space: false, - control: false, + shift: false, }, }; } diff --git a/src/client/ux.ts b/src/client/ux.ts index 87d855f..19fc742 100644 --- a/src/client/ux.ts +++ b/src/client/ux.ts @@ -38,8 +38,8 @@ export function initUX(context: any, canvas: any) { if (event.key == 'd') { context.params.keyboard.d = true; } - if (event.key == 'Control') { - context.params.keyboard.control = true; + if (event.key == 'Shift') { + context.params.keyboard.shift = true; } if (event.key == ' ') { context.params.keyboard.space = true; @@ -58,8 +58,8 @@ export function initUX(context: any, canvas: any) { if (event.key == 'd') { context.params.keyboard.d = false; } - if (event.key == 'Control') { - context.params.keyboard.control = false; + if (event.key == 'Shift') { + context.params.keyboard.shift = false; } if (event.key == ' ') { context.params.keyboard.space = false; diff --git a/views/index.ejs b/views/index.ejs index 1d6c90a..ce4060a 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -16,7 +16,7 @@
To control the camera orientation with mouse, click in the canvas, to exit, click again.
- To control the camera position, use W/S for Z axis, A/D for X axis, and Space/Control for fixed Y axis. + To control the camera position, use W/S for Z axis, A/D for X axis, and Space/Shift for fixed Y axis.
Change shader: