Fawkes API
Fawkes Development Version
|
Process incoming messages. More...
#include "act_thread.h"
Public Member Functions | |
MessageProcessor (JoystickAcquisitionThread *aqt, fawkes::JoystickInterface *joystick_if) | |
Constructor. More... | |
void | process () |
Process message currently in the queue. More... | |
void | process_message (fawkes::Message *msg) |
Process a single message. More... | |
JoystickActThread::MessageProcessor::MessageProcessor | ( | JoystickAcquisitionThread * | aqt, |
fawkes::JoystickInterface * | joystick_if | ||
) |
Constructor.
aqt | acqusition thread to intsruct |
joystick_if | interface to listen on for messages |
Definition at line 87 of file act_thread.cpp.
void JoystickActThread::MessageProcessor::process | ( | ) |
Process message currently in the queue.
Definition at line 137 of file act_thread.cpp.
References JoystickForceFeedback::can_constant(), JoystickForceFeedback::can_damper(), JoystickForceFeedback::can_friction(), JoystickForceFeedback::can_inertia(), JoystickForceFeedback::can_periodic(), JoystickForceFeedback::can_ramp(), JoystickForceFeedback::can_rumble(), JoystickForceFeedback::can_spring(), JoystickAcquisitionThread::ff(), fawkes::Interface::msgq_empty(), fawkes::Interface::msgq_first(), fawkes::Interface::msgq_flush(), fawkes::Interface::msgq_pop(), fawkes::JoystickInterface::set_supported_ff_effects(), and fawkes::Interface::write().
Referenced by JoystickActThread::loop().
void JoystickActThread::MessageProcessor::process_message | ( | fawkes::Message * | msg | ) |
Process a single message.
msg | message to process |
Definition at line 99 of file act_thread.cpp.
References fawkes::JoystickInterface::StartRumbleMessage::delay(), fawkes::JoystickInterface::StartRumbleMessage::direction(), JoystickAcquisitionThread::ff(), fawkes::JoystickInterface::ff_effects(), fawkes::JoystickInterface::StartRumbleMessage::length(), JoystickForceFeedback::rumble(), fawkes::JoystickInterface::set_ff_effects(), JoystickForceFeedback::stop_all(), JoystickForceFeedback::stop_rumble(), fawkes::JoystickInterface::StartRumbleMessage::strong_magnitude(), fawkes::JoystickInterface::StartRumbleMessage::weak_magnitude(), and fawkes::Interface::write().