forked from mirrors/kolyah35-minecraft-pe-0.6.1
Merge branch 'main' of https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1
This commit is contained in:
commit
eb8caa887e
4 changed files with 10 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "Minecraft.h"
|
||||
#include "client/player/input/IBuildInput.h"
|
||||
#include "platform/input/Keyboard.h"
|
||||
#include "world/item/Item.h"
|
||||
#include "world/item/ItemInstance.h"
|
||||
#include <string>
|
||||
|
|
@ -729,6 +730,10 @@ void Minecraft::tickInput() {
|
|||
}
|
||||
#endif
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
if (key == Keyboard::KEY_LEFT_CTRL) {
|
||||
player->setSprinting(true);
|
||||
}
|
||||
|
||||
if (key == Keyboard::KEY_E) {
|
||||
screenChooser.setScreen(SCREEN_BLOCKSELECTION);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ private:
|
|||
bool sprinting;
|
||||
int sprintDoubleTapTimer;
|
||||
bool prevForwardHeld;
|
||||
public:
|
||||
void setSprinting(bool sprint) { sprinting = sprint; }
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_PLAYER__LocalPlayer_H__*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue