GPUDevice: Move software cursor to ImGuiManager

This commit is contained in:
Stenzek
2023-08-27 16:22:45 +10:00
parent dd01c75f26
commit 259193a8e5
14 changed files with 201 additions and 185 deletions

View File

@ -1026,6 +1026,12 @@ void InputManager::GenerateRelativeMouseEvents()
}
}
std::pair<float, float> InputManager::GetPointerAbsolutePosition(u32 index)
{
return std::make_pair(s_host_pointer_positions[index][static_cast<u8>(InputPointerAxis::X)],
s_host_pointer_positions[index][static_cast<u8>(InputPointerAxis::Y)]);
}
void InputManager::UpdatePointerAbsolutePosition(u32 index, float x, float y)
{
const float dx = x - std::exchange(s_host_pointer_positions[index][static_cast<u8>(InputPointerAxis::X)], x);
@ -1046,6 +1052,11 @@ void InputManager::UpdatePointerRelativeDelta(u32 index, InputPointerAxis axis,
std::memory_order_release);
}
void InputManager::UpdateHostMouseMode()
{
// TODO: Move from System to here.
}
bool InputManager::IsUsingRawInput()
{
#if defined(_WIN32)