htc: skeleton constructors for htcmisc
This commit is contained in:
1 parent
b925344c3b
commit
1f03b11dbc
12 files changed
+310
-6
No files matched your search
@@ -64,6 +64,13 @@ namespace ams::htclow::ctrl {
|
||||
return !ctrl::IsDisconnected(m_state) && m_state != HtcctrlState_DriverConnected;
|
||||
}
|
||||
|
||||
bool HtcctrlStateMachine::IsDisconnectionNeeded() {
|
||||
/* Lock ourselves. */
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
||||
return !ctrl::IsDisconnected(m_state) && m_state != HtcctrlState_Sleep && m_state != HtcctrlState_DriverConnected;
|
||||
}
|
||||
|
||||
bool HtcctrlStateMachine::IsConnected() {
|
||||
/* Lock ourselves. */
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
||||
Reference in new issue
Block a user