mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
eb53e7a2fe
* tools - handle header sub indexs for arguements * convert remaining * Update coding-guidelines.md
24 lines
438 B
Plaintext
24 lines
438 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Handles mouse button press.
|
|
*
|
|
* Arguments:
|
|
* 0: Not used
|
|
* 1: Args <ARRAY>
|
|
* - 0: Not used
|
|
* - 1: Mouse button <NUMBER>
|
|
* - 2: Mouse X position <NUMBER>
|
|
* - 3: Mouse Y position <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["", "_args"];
|
|
_args params ["", "_buttonPressed", "_xPos", "_yPos"];
|
|
|
|
GVAR(mouseButtonState) set [_buttonPressed, [_xPos, _yPos]];
|