mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
@@ -8,6 +8,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "compat/LegacyCPPCompatibility.hpp"
|
||||
|
||||
class IArea
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "compat/LegacyCPPCompatibility.hpp"
|
||||
|
||||
class Player;
|
||||
|
||||
enum
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "compat/LegacyCPPCompatibility.hpp"
|
||||
|
||||
struct TurnDelta
|
||||
{
|
||||
float x, y;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "MouseHandler.hpp"
|
||||
|
||||
#include "common/Utils.hpp"
|
||||
|
||||
MouseHandler::MouseHandler() :
|
||||
m_pTurnInput(nullptr)
|
||||
{
|
||||
|
||||
@@ -50,14 +50,14 @@ void Multitouch::feed(MouseButtonType a1, bool a2, int a3, int a4, int fingerId)
|
||||
MouseDevice* pDevice = g(fingerId);
|
||||
pDevice->feed(a1, a2, a3, a4);
|
||||
|
||||
if (a1)
|
||||
if (a1 != BUTTON_NONE)
|
||||
{
|
||||
if (a2)
|
||||
{
|
||||
_wasPressed[fingerId] = true;
|
||||
_wasPressedThisUpdate[fingerId] = true;
|
||||
}
|
||||
else if (a2 == 0)
|
||||
else
|
||||
{
|
||||
_wasReleased[fingerId] = true;
|
||||
_wasReleasedThisUpdate[fingerId] = true;
|
||||
|
||||
Reference in New Issue
Block a user