mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
initial commit jolt
This commit is contained in:
parent
0c2aa5328c
commit
8acf7da95b
1086 changed files with 214612 additions and 4 deletions
35
Engine/lib/JoltPhysics/TestFramework/Input/Mouse.h
Normal file
35
Engine/lib/JoltPhysics/TestFramework/Input/Mouse.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
class ApplicationWindow;
|
||||
|
||||
/// Mouse interface class, keeps track of the mouse button state and of the absolute and relative movements of the mouse.
|
||||
class Mouse
|
||||
{
|
||||
public:
|
||||
/// Constructor
|
||||
Mouse() = default;
|
||||
virtual ~Mouse() = default;
|
||||
|
||||
/// Initialization / shutdown
|
||||
virtual bool Initialize(ApplicationWindow *inWindow) = 0;
|
||||
virtual void Shutdown() = 0;
|
||||
|
||||
/// Update the mouse state
|
||||
virtual void Poll() = 0;
|
||||
|
||||
virtual int GetX() const = 0;
|
||||
virtual int GetY() const = 0;
|
||||
virtual int GetDX() const = 0;
|
||||
virtual int GetDY() const = 0;
|
||||
|
||||
virtual bool IsLeftPressed() const = 0;
|
||||
virtual bool IsRightPressed() const = 0;
|
||||
virtual bool IsMiddlePressed() const = 0;
|
||||
|
||||
virtual void HideCursor() = 0;
|
||||
virtual void ShowCursor() = 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue