MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / InputKeyboardUp

Function InputKeyboardUp

demo/main.cpp:2468–2491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2466}
2467
2468void InputKeyboardUp(unsigned char key, int x, int y)
2469{
2470 switch (key)
2471 {
2472 case 'w':
2473 case 's':
2474 {
2475 g_camVel.z = 0.0f;
2476 break;
2477 }
2478 case 'a':
2479 case 'd':
2480 {
2481 g_camVel.x = 0.0f;
2482 break;
2483 }
2484 case 'q':
2485 case 'z':
2486 {
2487 g_camVel.y = 0.0f;
2488 break;
2489 }
2490 };
2491}
2492
2493void MouseFunc(int b, int state, int x, int y)
2494{

Callers 2

ControllerButtonEventFunction · 0.85
SDLMainLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected