Skip to content

input

FC2_TEAM_MOUSE_CODE Button Value
FC2_TEAM_MOUSE_NONE No button 0
FC2_TEAM_MOUSE_LEFT Left 1
FC2_TEAM_MOUSE_RIGHT Right 2
FC2_TEAM_MOUSE_MIDDLE Middle 3

input::move

This method relatively moves the cursor per pixel.

See examples/input/ on the repo.

Parameters

  • int x
  • int y

input::click

This method clicks down a mouse button.

See examples/input/ on the repo.

Parameters

  • FC2_TEAM_MOUSE_CODE

input::down

This method holds down a mouse button.

See examples/input/ on the repo.

Parameters

  • FC2_TEAM_MOUSE_CODE

input::up

This method releases a held down mouse button.

See examples/input/ on the repo.

Parameters

  • FC2_TEAM_MOUSE_CODE