Skip to content

Set mouseButton.left to CameraControls.ACTION.TRUCK in React Three Fiber #501

Answered by dayunbao
dayunbao asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind, after looking a bit more, there are ultimately just numbers. So I used the values directly.

export declare const ACTION: Readonly<{
    readonly NONE: 0;
    readonly ROTATE: 1;
    readonly TRUCK: 2;
    readonly OFFSET: 4;
    readonly DOLLY: 8;
    readonly ZOOM: 16;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dayunbao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant