MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / CaptureControlC

Method CaptureControlC

src/render/rd_app.cpp:942–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 }
941
942 void WinApplication::CaptureControlC() {
943 s_ctrl_handler = [this](DWORD signal) -> BOOL {
944 if (signal == CTRL_C_EVENT) {
945 std::cout << "CTRL+C detected, localVar value is " << "\n";
946 this->Exit();
947 return TRUE;
948 }
949 return FALSE;
950 };
951 if (!SetConsoleCtrlHandler(ConsoleHandler, TRUE)) {
952 LOGE("ERROR: Could not set control handler");
953 }
954 }
955
956 void WinApplication::LoadDxAddress() {
957 app_shared_message_ = DxAddressLoader::LoadDxAddress();

Callers 1

mainFunction · 0.80

Calls 1

ExitMethod · 0.45

Tested by

no test coverage detected