MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / input_event

Method input_event

framework/platform/platform.cpp:491–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void Platform::input_event(const InputEvent &input_event)
492{
493 if (process_input_events && active_app)
494 {
495 active_app->input_event(input_event);
496 }
497
498 if (input_event.get_source() == EventSource::Keyboard)
499 {
500 const auto &key_event = static_cast<const KeyInputEvent &>(input_event);
501
502 if (key_event.get_code() == KeyCode::Back ||
503 key_event.get_code() == KeyCode::Escape)
504 {
505 close();
506 }
507 }
508}
509
510void Platform::resize(uint32_t width, uint32_t height)
511{

Callers 4

key_callbackFunction · 0.45
cursor_position_callbackFunction · 0.45
mouse_button_callbackFunction · 0.45
process_eventsMethod · 0.45

Calls 2

get_sourceMethod · 0.80
get_codeMethod · 0.80

Tested by

no test coverage detected