mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 01:24:35 +02:00
#59 fix
This commit is contained in:
@@ -1764,6 +1764,9 @@ struct Lara : Character {
|
|||||||
float ext = angle.y;
|
float ext = angle.y;
|
||||||
|
|
||||||
if (input & FORTH) {
|
if (input & FORTH) {
|
||||||
|
if (state == STATE_BACK)
|
||||||
|
res = STATE_STOP;
|
||||||
|
else
|
||||||
res = STATE_WALK;
|
res = STATE_WALK;
|
||||||
} else if (input & BACK) {
|
} else if (input & BACK) {
|
||||||
res = STATE_BACK;
|
res = STATE_BACK;
|
||||||
|
48
src/ui.h
48
src/ui.h
@@ -194,31 +194,31 @@ namespace UI {
|
|||||||
mesh->addBar(buffer.indices, buffer.vertices, buffer.iCount, buffer.vCount, type, pos, vec2(size.x * value, size.y), 0xFFFFFFFF);
|
mesh->addBar(buffer.indices, buffer.vertices, buffer.iCount, buffer.vCount, type, pos, vec2(size.x * value, size.y), 0xFFFFFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *helpText = \
|
const char *helpText =
|
||||||
"Controls gamepad, touch and keyboard:@"\
|
"Controls gamepad, touch and keyboard:@"
|
||||||
" H - Show or hide this help@"\
|
" H - Show or hide this help@"
|
||||||
" TAB - Inventory@"\
|
" TAB - Inventory@"
|
||||||
" LEFT - Left@"\
|
" LEFT - Left@"
|
||||||
" RIGHT - Right@"\
|
" RIGHT - Right@"
|
||||||
" UP - Run@"\
|
" UP - Run@"
|
||||||
" DOWN - Back@"\
|
" DOWN - Back@"
|
||||||
" SHIFT - Walk@"\
|
" SHIFT - Walk@"
|
||||||
" SPACE - Draw Weapon@"\
|
" SPACE - Draw Weapon@"
|
||||||
" CTRL - Action@"\
|
" CTRL - Action@"
|
||||||
" ALT - Jump@"\
|
" ALT - Jump@"
|
||||||
" Z - Step Left@"\
|
" Z - Step Left@"
|
||||||
" X - Step Right@"\
|
" X - Step Right@"
|
||||||
" A - Roll@"\
|
" A - Roll@"
|
||||||
" C - Look # not implemented #@"\
|
" C - Look # not implemented #@"
|
||||||
" V - First Person View@"
|
" V - First Person View@"
|
||||||
" R - slow motion@"\
|
" R - slow motion@"
|
||||||
" T - fast motion@"\
|
" T - fast motion@"
|
||||||
" ALT + ENTER - Fullscreen@@"\
|
" ALT + ENTER - Fullscreen@@"
|
||||||
"Actions:@"\
|
"Actions:@"
|
||||||
" Out of water - Run + Action@"\
|
" Out of water - Run + Action@"
|
||||||
" Handstand - Run + Walk@"\
|
" Handstand - Run + Walk@"
|
||||||
" Swan dive - Run + Walk + jump@"\
|
" Swan dive - Run + Walk + jump@"
|
||||||
" DOZY on - Look + Step Right + Action + Jump@"\
|
" DOZY on - Look + Step Right + Action + Jump@"
|
||||||
" DOZY off - Walk@";
|
" DOZY off - Walk@";
|
||||||
|
|
||||||
void renderHelp() {
|
void renderHelp() {
|
||||||
|
Reference in New Issue
Block a user