dolphin/Source/Core/InputCommon/QuartzInputMouse.h
Brandon Sorensen 0168201bb1 Changes Cocoa references to Quartz and moved funcs into class
Changes references to Cocoa framework in class interface class
names to Quartz such that they match existing Dolphin interfaces.

Additionally, moves the `get_bounds` and `getWindowCenter` helper
functions into the `QuartzInputMouse` class as private methods
as they do not need to be exposed.
2022-05-23 13:34:08 +02:00

25 lines
466 B
C++

#include <ApplicationServices/ApplicationServices.h>
#include "GenericMouse.h"
namespace prime
{
bool InitCocoaInputMouse(uint32_t* windowid);
class QuartzInputMouse: public GenericMouse
{
public:
explicit QuartzInputMouse(uint32_t* windowid);
void UpdateInput() override;
void LockCursorToGameWindow() override;
private:
CGPoint current_loc, center;
CGEventRef event{};
uint32_t* m_windowid;
CGRect getBounds();
CGPoint getWindowCenter();
};
}