Revision 7ed40bef src/client/middleware.cpp
src/client/middleware.cpp | ||
---|---|---|
46 | 46 |
//! \param MouthState m to set |
47 | 47 |
//! \param send data to server (optional, use manual call to send_*() to trigger update on server) |
48 | 48 |
void Middleware::update_mouth_target(MouthState m, bool send){ |
49 |
mouth_state = m;
|
|
50 |
if (send){
|
|
51 |
send_mouth_target();
|
|
52 |
}
|
|
49 |
mouth_state = m;
|
|
50 |
if (send){
|
|
51 |
send_mouth_target();
|
|
52 |
}
|
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
//! set gaze target |
... | ... | |
65 | 65 |
|
66 | 66 |
//! send all targets to server |
67 | 67 |
void Middleware::send_all(){ |
68 |
send_mouth_target();
|
|
68 |
send_mouth_target();
|
|
69 | 69 |
send_gaze_target(); |
70 | 70 |
} |
71 | 71 |
|
Also available in: Unified diff