GSDP:GAM100/CProcessing/MouseButton

From Inside
Jump to: navigation, search

MouseButton

Description

To select which key you want to check with mouseIsDown() or any other input function. Listed in the example are all of the available keys.

Example

// Enum of mouse buttons to use with input functions
enum MouseButton 
{
    MOUSE_BUTTON_1      = 0,
    MOUSE_BUTTON_2      = 1,
    MOUSE_BUTTON_3      = 2,
    MOUSE_BUTTON_4      = 3,
    MOUSE_BUTTON_5      = 4,
    MOUSE_BUTTON_6      = 5,
    MOUSE_BUTTON_7      = 6,
    MOUSE_BUTTON_8      = 7,
    MOUSE_BUTTON_LAST   = MOUSE_BUTTON_8,
    MOUSE_BUTTON_LEFT   = MOUSE_BUTTON_1,
    MOUSE_BUTTON_MIDDLE = MOUSE_BUTTON_3,
    MOUSE_BUTTON_RIGHT  = MOUSE_BUTTON_2,
};
typedef enum MouseButton MouseButton;

Related

Enums
Functions
Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>