Skip to main content

M3ddispGetHookInfo

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Get information about a 3D display hook event.

Syntax

AIL_INT M3ddispGetHookInfo(
AIL_ID EventId, //in
AIL_INT64 InfoType, //in
void * UserVarPtr //out
)

Description

This function allows you to get information about the event that caused the hook-handler function to be called. M3ddispGetHookInfo should only be called within the scope of a 3D display hook-handler function (see M3ddispHookFunction).

Parameters

EventId (in, AIL_ID)

Specifies the 3D display event identifier received by the hook-handler function (see M3ddispHookFunction).

InfoType (in, AIL_INT64)

Specifies the type of information about the event to return.

UserVarPtr *(out, void)

Specifies the address in which to write the requested information.

Parameter Associations

For retrieving information about a general 3D display hook event

Regardless of the 3D display event that caused the hook-handler function to be called, the InfoType parameter can be set to the value below.


M_DISPLAY

Retrieves the Aurora Imaging Library identifier of the 3D display that generated the event.

ValueDescription
3D display identifierSpecifies the Aurora Imaging Library identifier of the 3D display that generated the event.

For retrieving information regarding mouse events

If the hook-handler function was called due to an M_MOUSE_... event type, the InfoType parameter can be set to one of the values below.


M_MOUSE_POSITION_X

Retrieves the X-position of the cursor, in display coordinates.

ValueDescription
Value >= 0Specifies the X-position of the cursor, in display coordinates.

M_MOUSE_POSITION_Y

Retrieves the Y-position of the cursor, in display coordinates.

ValueDescription
Value >= 0Specifies the Y-position of the cursor, in display coordinates.

M_MOUSE_WHEEL_VALUE

Retrieves the value for the mouse wheel's rotation. Note, this value can only be retrieved if the hook-handler function was called due to the M_MOUSE_WHEEL event.

ValueDescription
ValueSpecifies the value for the mouse wheel's rotation. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotate backward, toward the user.

For retrieving information regarding keyboard events

If the hook-handler function was called due to an M_KEY_... event type, the InfoType parameter can be set to one of the values below.


M_AIL_KEY_VALUE

Retrieves the Aurora Imaging Library operating system-independent key code for the keyboard key that triggered the event. Note, this value can only be retrieved if the hook-handler function was called due to theM_KEY_DOWN, M_KEY_UP, or M_KEY_CHAR event.

ValueDescription
M_KEY_ADDSpecifies the Add key (+).
M_KEY_ARROW_DOWNSpecifies the Down Arrow key.
M_KEY_ARROW_LEFTSpecifies the Left Arrow key.
M_KEY_ARROW_RIGHTSpecifies the Right Arrow key.
M_KEY_ARROW_UPSpecifies the Up Arrow key.
M_KEY_BACKSpecifies the Back key.
M_KEY_CLEARSpecifies the Clear key.
M_KEY_DECIMALSpecifies the Period key located on your number pad.
M_KEY_DELETESpecifies the Delete key.
M_KEY_DIVIDESpecifies the Divide key (/).
M_KEY_ENDSpecifies the End key.
M_KEY_ESCSpecifies the Esc key.
M_KEY_EXECUTESpecifies the Execute key.
M_KEY_FnSpecifies the_n_key, where n is a value from 1 to 24.
M_KEY_HOMESpecifies the Home key.
M_KEY_INSERTSpecifies the Insert key.
M_KEY_MULTIPLYSpecifies the Multiply key (*).
M_KEY_nSpecifies the_n_key, where n is a value from 0 to 9.
M_KEY_NUM_LOCKSpecifies the Num Lock key.
M_KEY_NUMPADnSpecifies the_n_key, where n is a value from 0 to 9.
M_KEY_PAGEDOWNSpecifies the Pagedown key.
M_KEY_PAGEUPSpecifies the Pageup key.
M_KEY_PAUSESpecifies the Pause key.
M_KEY_RETURNSpecifies the Return key (Enter).
M_KEY_SCROLL_LOCKSpecifies the Scroll Lock key.
M_KEY_SEPARATORSpecifies the Separator key.
M_KEY_SPACESpecifies the Space key.
M_KEY_SUBTRACTSpecifies the Subtract key (-).
M_KEY_TABSpecifies the Tab key.
M_KEY_xxxSpecifies the letter key_xxx_, where_xxx_ can be a letter from A to Z.

M_KEY_VALUE

Retrieves the operating system's key code for the keyboard key that triggered the event.

ValueDescription
ValueSpecifies the key code.

For retrieving information regarding either a mouse or keyboard event

If the hook-handler function was called due to either an M_KEY_... or M_MOUSE_... event type, the InfoType parameter can be set to the value below.


M_COMBINATION_KEYS

Retrieves which combination keys or mouse buttons triggered the event. Note that a combination of the values below can be returned. Bitwise operators must be used to establish the specific keys or buttons pressed.

ValueDescription
M_KEY_ALTSpecifies the Alt key.
M_KEY_CTRLSpecifies the Ctrl key.
M_KEY_SHIFTSpecifies the Shift key.
M_KEY_WINSpecifies the Windows key.
M_MOUSE_LEFT_BUTTONSpecifies the left mouse button.
M_MOUSE_MIDDLE_BUTTONSpecifies the middle mouse button.
M_MOUSE_RIGHT_BUTTONSpecifies the right mouse button.

For retrieving information regarding frametime events

If the hook-handler function was called due to an M_FRAMETIME_... event type, the InfoType parameter can be set to one of the values below. > Note: Note, the frametime is the time it took to render a frame.


M_FRAMETIME_AVERAGE

Retrieves the average frametime in seconds, over the number of frames specified byM_FRAMETIME_AVERAGE_SMOOTHING.

ValueDescription
Value > 0.0Specifies the frametime.

M_FRAMETIME_AVERAGE_SMOOTHING

Retrieves the number of frames used when calculating M_FRAMETIME_AVERAGE.

ValueDescription
Value > 0Specifies the number of frames.

M_FRAMETIME_LAST

Retrieves the frametime of the last frame in seconds.

ValueDescription
Value > 0.0Specifies the frametime.

Return Value

Type: AIL_INT

The returned value is M_NULL if successful. If the operation fails, a non-null (!M_NULL) value is returned.

Copyright © 2026 Zebra Technologies.