Sunshine latest
Self-hosted game stream host for Moonlight.
platf::gamepad_feedback_msg_t Struct Reference

Static Public Member Functions

static gamepad_feedback_msg_t make_motion_event_state (std::uint16_t id, std::uint8_t motion_type, std::uint16_t report_rate)
 
static gamepad_feedback_msg_t make_rgb_led (std::uint16_t id, std::uint8_t r, std::uint8_t g, std::uint8_t b)
 
static gamepad_feedback_msg_t make_rumble (std::uint16_t id, std::uint16_t lowfreq, std::uint16_t highfreq)
 
static gamepad_feedback_msg_t make_rumble_triggers (std::uint16_t id, std::uint16_t left, std::uint16_t right)
 

Public Attributes

union { 
 
   struct { 
 
      std::uint8_t   motion_type 
 
      std::uint16_t   report_rate 
 
   }   motion_event_state 
 
   struct { 
 
      std::uint8_t   b 
 
      std::uint8_t   g 
 
      std::uint8_t   r 
 
   }   rgb_led 
 
   struct { 
 
      std::uint16_t   highfreq 
 
      std::uint16_t   lowfreq 
 
   }   rumble 
 
   struct { 
 
      std::uint16_t   left_trigger 
 
      std::uint16_t   right_trigger 
 
   }   rumble_triggers 
 
data 
 
std::uint16_t id
 
gamepad_feedback_e type
 

The documentation for this struct was generated from the following file: