diff --git a/src/mouse.ts b/src/mouse.ts index 94118c6..a0641dd 100644 --- a/src/mouse.ts +++ b/src/mouse.ts @@ -26,7 +26,8 @@ export class Mouse { if (processed) return; if ( input.UserInputType === Enum.UserInputType.MouseButton1 || - input.UserInputType === Enum.UserInputType.MouseButton2 + input.UserInputType === Enum.UserInputType.MouseButton2 || + input.UserInputType === Enum.UserInputType.MouseButton3 ) { const signal = this.mouseDownSignals.get(input.UserInputType); if (signal) { @@ -40,7 +41,8 @@ export class Mouse { if (processed) return; if ( input.UserInputType === Enum.UserInputType.MouseButton1 || - input.UserInputType === Enum.UserInputType.MouseButton2 + input.UserInputType === Enum.UserInputType.MouseButton2 || + input.UserInputType === Enum.UserInputType.MouseButton3 ) { const signal = this.mouseUpSignals.get(input.UserInputType); if (signal) { diff --git a/src/types.ts b/src/types.ts index 85549a3..06f5e21 100644 --- a/src/types.ts +++ b/src/types.ts @@ -73,7 +73,7 @@ export namespace Clack { /** * Represents `Enum.UserInputType` mouse buttons. */ - export type MouseButton = Enum.UserInputType.MouseButton1 | Enum.UserInputType.MouseButton2; + export type MouseButton = Enum.UserInputType.MouseButton1 | Enum.UserInputType.MouseButton2 | Enum.UserInputType.MouseButton3; /** Enum representing the user's preferred input type. */ export const enum InputType {