src/lua-bindings/wrap_imgui_codegen.cpp
/*  return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) */
return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold)
return the delta from the initial clicking position while the mouse button is pressed or was just released . This is locked and return 0 . 0f until the mouse moves past a distance threshold at least once ( if lock_threshold < - 1 . 0f uses io . MouseDraggingThreshold )
int w_GetMouseDragDelta(lua_State *L)
{
	auto button = luax_optenum<ImGuiMouseButton>(getImGuiMouseButtonFromString, L, 1, 0);
	auto lock_threshold = luax_optfloat(L, 2, -1.0f);
	ImVec2 out = ImGui::GetMouseDragDelta(button, lock_threshold);
	lua_pushnumber(L, out.x);
	lua_pushnumber(L, out.y);
	return 2;
}
int w_GetMouseDragDelta ( lua_State * L ) { auto button = luax_optenum < ImGuiMouseButton > ( getImGuiMouseButtonFromString , L , 1 , 0 ) ; auto lock_threshold = luax_optfloat ( L , 2 , -1.0f ) ; ImVec2 out = ImGui :: GetMouseDragDelta ( button , lock_threshold ) ; lua_pushnumber ( L , out . x ) ; lua_pushnumber ( L , out . y ) ; return 2 ; }
return the delta from the initial clicking position while the mouse button is pressed or was just released.
return the delta from the initial clicking position while the mouse button is pressed or was just released .