@mocanvas/editor · class
declare class InputsManager implements EditorInputsThe editor's input state.
A class rather than an object literal so the accessors above exist without every construction site repeating them; the fields stay public and writable because the dispatch loop assigns them directly on every event, and a setter per field would buy nothing.
On this page
Methods · 20
getAccelKey(): booleangetAltKey(): booleangetButtons(): Set<number>getCtrlKey(): booleangetCurrentPagePoint(): VecgetCurrentScreenPoint(): VecgetIsDragging(): booleangetIsEditing(): booleangetIsPanning(): booleangetIsPen(): booleangetIsPinching(): booleangetIsPointing(): booleangetKeys(): Set<string>getMetaKey(): booleangetOriginPagePoint(): VecgetOriginScreenPoint(): VecgetPointerVelocity(): VecgetPreviousPagePoint(): VecgetPreviousScreenPoint(): VecgetShiftKey(): booleanProperties · 20
accelKey: booleanaltKey: booleanbuttons: Set<number>ctrlKey: booleancurrentPagePoint: VeccurrentScreenPoint: VecisDragging: booleanisEditing: booleanisPanning: booleanisPen: booleanisPinching: booleanisPointing: booleankeys: Set<string>metaKey: booleanoriginPagePoint: VecoriginScreenPoint: VecpointerVelocity: VecpreviousPagePoint: VecpreviousScreenPoint: VecshiftKey: booleanmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.