mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
migrate ALMOST everything from source tree into client
This commit is contained in:
29
source/client/player/input/Controller.hpp
Normal file
29
source/client/player/input/Controller.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Controller
|
||||
{
|
||||
public:
|
||||
static bool isValidStick(int stickNo);
|
||||
static float linearTransform(float, float, float, bool);
|
||||
static void feed(int stickNo, int touched, float x, float y);
|
||||
static float getX(int stickNo);
|
||||
static float getY(int stickNo);
|
||||
static float getTransformedX(int stickNo, float a2, float a3, bool b);
|
||||
static float getTransformedY(int stickNo, float a2, float a3, bool b);
|
||||
static bool isTouched(int stickNo);
|
||||
|
||||
public:
|
||||
static bool isTouchedValues[2];
|
||||
static float stickValuesX[2], stickValuesY[2];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user