Function in ldk.h

ldk_input_game_view_clear

Clear the editor game viewport input remapping.

LDK_API void ldk_input_game_view_clear(void);
Function in ldk.h

ldk_input_game_view_set

Set the embedded editor game viewport used for input remapping.

LDK_API void ldk_input_game_view_set(
 float x,
 float y,
 float width,
 float height,
 u32 game_width,
 u32 game_height
);

Parameters

float x
X coordinate or component.
float y
Y coordinate or component.
float width
Width in pixels or the units expected by the API.
float height
Height in pixels or the units expected by the API.
u32 game_width
Game width used by this operation.
u32 game_height
Game height used by this operation.