Skip to content

Commit

Permalink
arrow keys for navigation instead of WASD
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioSiroki authored and dmandrioli committed Jul 20, 2020
1 parent 08db77c commit dbf6150
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ marking)
- Mouse middle button (or Ctrl+Click): Change the target of the camera
- Mouse right button: Used to select multiple points at the same time depending on the current Selection Tool and
Selection Mode.
- WASD keys: Move through the scene
- Arrow keys: Move through the scene

### PCD support

Expand Down
2 changes: 0 additions & 2 deletions imports/editor/3d/SseEditor3d.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,6 @@ export default class SseEditor3d extends React.Component {
// enable panning and keyboard controls
this.orbiter.enablePan = true;
this.orbiter.enableKeys = true;
// override arrow keys (default) to WASD
this.orbiter.keys = {LEFT: 65, UP: 87, RIGHT: 68, BOTTOM: 83};
// set pan button to null, default is RMB, but that's used for labeling
this.orbiter.mouseButtons = {ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: null};

Expand Down

0 comments on commit dbf6150

Please sign in to comment.