Skip to content

interaction


set_mouse_cursor_this_frame

void native.interaction.set_mouse_cursor_this_frame()

Shows the cursor on screen for one frame.

Old name: _SET_MOUSE_CURSOR_ACTIVE_THIS_FRAME

set_mouse_cursor_style

void native.interaction.set_mouse_cursor_style(int sprite_id)

Changes the mouse cursor's sprite.

spriteId's: https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/cursor_sprites#readme

Old name: _SET_MOUSE_CURSOR_SPRITE

_set_allow_first_person_mouse_camera_movement

void native.interaction._set_allow_first_person_mouse_camera_movement()

Allows camera to be moved if middle mouse button is held while in first person
Must be called every frame
_SET*

_pointer_is_being_moved

bool native.interaction._pointer_is_being_moved()

Returns true if player is moving mouse while cursor is active
_PI* - _PO*

_pointer_is_left_button_held

bool native.interaction._pointer_is_left_button_held()

Returns true if player is holding LMB while cursor is active
_PI* - _PO*

_pointer_is_left_button_just_released

bool native.interaction._pointer_is_left_button_just_released()

Returns true if player releases LMB if cursor is active
_PI* - _PO*