This commit is contained in:
milek7
2018-02-16 16:21:41 +01:00
parent 61836eb2e4
commit 497b66fdda

View File

@@ -168,14 +168,14 @@ void uart_input::poll()
auto const action { (
type != impulse ?
GLFW_PRESS :
( true == state ?
( state ?
GLFW_PRESS :
GLFW_RELEASE ) ) };
auto const command { (
type != toggle ?
std::get<2>( entry ) :
( action == GLFW_PRESS ?
( state ?
std::get<2>( entry ) :
std::get<3>( entry ) ) ) };