Skip to content

Commit b153568

Browse files
authored
Fix Inputs.GetMousePos to return FVector2 instead of FVector3 (#648)
1 parent a9f2809 commit b153568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/OvCore/src/OvCore/Scripting/Lua/Bindings/LuaGlobalBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void BindLuaGlobal(sol::state& p_luaState)
198198
"GetMouseButton", [](EMouseButton p_button) { return OVSERVICE(InputManager).GetMouseButtonState(p_button) == EMouseButtonState::MOUSE_DOWN; },
199199
"GetMousePos", []() {
200200
const auto mousePos = OVSERVICE(InputManager).GetMousePosition();
201-
return FVector3(static_cast<float>(mousePos.first), static_cast<float>(mousePos.second));
201+
return FVector2(static_cast<float>(mousePos.first), static_cast<float>(mousePos.second));
202202
},
203203
"GetMouseScroll", []() {
204204
const auto scroll = OVSERVICE(InputManager).GetMouseScroll();

0 commit comments

Comments
 (0)