Skip to content

How does fire button work ? #28

Open
@warpdesign

Description

@warpdesign

Reading the issues, it appears a fire button should appear when touching the right of the screen. The thing is when touching the right of the screen, the joystick appears and not the fire button.

I'm initializing virtualjoystick like this:

joystick = this.joystick = new VirtualJoystick({
container : document.getElementsByClassName('main')[0],
mouseSupport : true,
});

Is there anything else to do to have the firebutton ? How do I listen for firebutton presses ? Is there an equivalent to joystick.left() ? Maybe joystick.fire() ?

Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions