mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02:00
uart fix
This commit is contained in:
4
uart.cpp
4
uart.cpp
@@ -168,14 +168,14 @@ void uart_input::poll()
|
|||||||
auto const action { (
|
auto const action { (
|
||||||
type != impulse ?
|
type != impulse ?
|
||||||
GLFW_PRESS :
|
GLFW_PRESS :
|
||||||
( true == state ?
|
( state ?
|
||||||
GLFW_PRESS :
|
GLFW_PRESS :
|
||||||
GLFW_RELEASE ) ) };
|
GLFW_RELEASE ) ) };
|
||||||
|
|
||||||
auto const command { (
|
auto const command { (
|
||||||
type != toggle ?
|
type != toggle ?
|
||||||
std::get<2>( entry ) :
|
std::get<2>( entry ) :
|
||||||
( action == GLFW_PRESS ?
|
( state ?
|
||||||
std::get<2>( entry ) :
|
std::get<2>( entry ) :
|
||||||
std::get<3>( entry ) ) ) };
|
std::get<3>( entry ) ) ) };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user