Update controls_test_suite.c
This commit is contained in:
parent
f62241d5d1
commit
3e7defc05a
@ -120,6 +120,8 @@ int main()
|
||||
|
||||
char textInputFileName[256] = { 0 };
|
||||
|
||||
float alpha = 1.0f;
|
||||
|
||||
SetTargetFPS(60);
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
@ -143,9 +145,17 @@ int main()
|
||||
UnloadDroppedFiles(droppedFiles); // Clear internal buffers
|
||||
}
|
||||
|
||||
progressValue += 0.002f;
|
||||
//if (progressValue >= 1.0f) progressValue = 0.0f;
|
||||
if (IsKeyPressed(KEY_SPACE)) progressValue = 0.2f;
|
||||
//alpha -= 0.002f;
|
||||
if (alpha < 0.0f) alpha = 0.0f;
|
||||
if (IsKeyPressed(KEY_SPACE)) alpha = 1.0f;
|
||||
|
||||
GuiSetAlpha(alpha);
|
||||
|
||||
//progressValue += 0.002f;
|
||||
if (IsKeyPressed(KEY_LEFT)) progressValue -= 0.1f;
|
||||
else if (IsKeyPressed(KEY_RIGHT)) progressValue += 0.1f;
|
||||
if (progressValue > 1.0f) progressValue = 1.0f;
|
||||
else if (progressValue < 0.0f) progressValue = 0.0f;
|
||||
|
||||
if (visualStyleActive != prevVisualStyleActive)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user