t2:mouse_get

mouse_get


mouse_get — Get value of a mouse output

Description


int32 mouse_get(uint8 ident);

Get the current value of the mouse output specified by ident.

The mouse_get() returns the value set by mouse_set() and/or mouse_passthru().

Parameters


  • ident: Identifier of a mouse output. Refer to mouse.gph for the mouse identifiers definitions.

Return Value


Returns an int32 value that represents the current status of the mouse output specified by ident.

Examples


Example #1 mouse_get() example

#include <mouse.gph>
 
main {
    mouse_passthru();
 
    if(mouse_get(MBUTTON_2)) {
        set_val(BUTTON_7, 100.0);
    }
}

See Also

t2/mouse_get.txt · Last modified: 2018/02/20 08:26 by J2Kbr