void CGameClient::cb_close_port(void* kodiInstance, unsigned int port) { CGameClient *gameClient = static_cast<CGameClient*>(kodiInstance); if (!gameClient) return; gameClient->Input().ClosePort(port); }
bool CGameClient::cb_open_port(void* kodiInstance, unsigned int port) { CGameClient *gameClient = static_cast<CGameClient*>(kodiInstance); if (!gameClient) return false; return gameClient->Input().OpenPort(port); }
bool CGameClient::cb_input_event(void* kodiInstance, const game_input_event* event) { CGameClient *gameClient = static_cast<CGameClient*>(kodiInstance); if (!gameClient) return false; if (event == nullptr) return false; return gameClient->Input().ReceiveInputEvent(*event); }