| 208 | } |
| 209 | |
| 210 | void HandlerHidapi::processAction_( const Action& action ) |
| 211 | { |
| 212 | ++numMsg_; |
| 213 | if ( numMsg_ == 1 ) |
| 214 | TelemetrySignal( "HID API first action processing" ); |
| 215 | if ( std::popcount( numMsg_ ) == 1 ) // report every power of 2 |
| 216 | TelemetrySignal( "HID API SpaceMouse next log messages" ); |
| 217 | smDevice_.process( action ); |
| 218 | glfwPostEmptyEvent(); |
| 219 | } |
| 220 | |
| 221 | bool HandlerHidapi::hasValidDeviceConnected() const |
| 222 | { |