Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface InputInterface

    Interface for Input management to allow mocking and dependency injection.

    interface InputInterface {
        isPointerLocked: boolean;
        mouse: MouseState;
        getAxis(neg: string, pos: string): number;
        isPressed(code: string): boolean;
    }

    Implemented by

    Index

    Properties

    isPointerLocked: boolean
    mouse: MouseState

    Methods

    • Parameters

      • neg: string
      • pos: string

      Returns number

    • Parameters

      • code: string

      Returns boolean