Mouse Mapping
Microsoft DirectX 9.0 SDK Update (October 2004)

Mouse Mapping Enumerated Type


The following constants are used in the dwSemantic member of the DIACTION structure to map an action to a physical axis or button on a mouse.

Syntax

typedef enum {
    DIMOUSE_BUTTON0,
    DIMOUSE_BUTTON1,
    DIMOUSE_BUTTON2,
    DIMOUSE_BUTTON3,
    DIMOUSE_BUTTON4,
    DIMOUSE_BUTTON5,
    DIMOUSE_BUTTON6,
    DIMOUSE_BUTTON7,
    DIMOUSE_WHEEL,
    DIMOUSE_XAXIS,
    DIMOUSE_YAXIS,
    DIMOUSE_XAXISAB,
    DIMOUSE_YAXISAB
} Mouse Mapping;

Constants

DIMOUSE_BUTTON0

DIMOUSE_BUTTON1

DIMOUSE_BUTTON2

DIMOUSE_BUTTON3

DIMOUSE_BUTTON4

DIMOUSE_BUTTON5

DIMOUSE_BUTTON6

DIMOUSE_BUTTON7

DIMOUSE_WHEEL

DIMOUSE_XAXIS

DIMOUSE_YAXIS

DIMOUSE_XAXISAB

DIMOUSE_YAXISAB

Remarks

DIMOUSE_XAXISAB and DIMOUSE_YAXISAB represent the x-axis and y-axis on a mouse that returns absolute rather than relative axis data.

Enumerated Type Information

Minimum operating systems Windows 98, Windows NT 2000, Windows XP


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.