mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
one last horrible bug
This commit is contained in:
@@ -399,12 +399,12 @@ void Minecraft::tickInput()
|
||||
|
||||
if (!bIsInGUI && m_options.field_19)
|
||||
{
|
||||
if (Mouse::getEventButton() == Mouse::ButtonType::LEFT && Mouse::getEventButtonState() == Mouse::ButtonState::UP)
|
||||
if (Mouse::getEventButton() == Mouse::ButtonType::LEFT && Mouse::getEventButtonState() == Mouse::ButtonState::DOWN)
|
||||
{
|
||||
handleMouseClick(1);
|
||||
field_DAC = field_DA8;
|
||||
}
|
||||
if (Mouse::getEventButton() == Mouse::ButtonType::RIGHT && Mouse::getEventButtonState() == Mouse::ButtonState::UP)
|
||||
if (Mouse::getEventButton() == Mouse::ButtonType::RIGHT && Mouse::getEventButtonState() == Mouse::ButtonState::DOWN)
|
||||
{
|
||||
handleMouseClick(2);
|
||||
field_DAC = field_DA8;
|
||||
@@ -506,7 +506,7 @@ void Minecraft::tickInput()
|
||||
|
||||
if (m_options.field_19)
|
||||
{
|
||||
if (!Mouse::isButtonDown(1) || bIsInGUI)
|
||||
if (!Mouse::isButtonDown(Mouse::ButtonType::LEFT) || bIsInGUI)
|
||||
goto label_12;
|
||||
}
|
||||
else if (Keyboard::isKeyDown(m_options.m_keyBinds[Options::DESTROY].value))
|
||||
|
||||
@@ -16,6 +16,8 @@ Mouse::ButtonState Mouse::_buttonStates[Mouse::ButtonType::COUNT];
|
||||
|
||||
void Mouse::feed(ButtonType buttonType, ButtonState buttonState, int posX, int posY)
|
||||
{
|
||||
if(buttonType!=ButtonType::NONE)
|
||||
LogMsg("Fuck %d %d", buttonType, buttonState);
|
||||
if (buttonType != ButtonType::NONE)
|
||||
_inputs.push_back(MouseAction(buttonType, buttonState, posX, posY));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user