@@ -153,7 +153,7 @@ void app_on_message(app_t *self, libwebsocket *socket, void *data, size_t len) {
153
153
break ;
154
154
}
155
155
156
- //printf("key: %d -> %d\n", key_code, scan_code);
156
+ //printf("key: %d -> %d\n", input-> key_code, scan_code);
157
157
keybd_event ((BYTE )input -> key_code , scan_code , flags , 0 );
158
158
}
159
159
else if ( type & input_type_mouse && len >= sizeof (input_mouse_t ) ) {
@@ -170,20 +170,20 @@ void app_on_message(app_t *self, libwebsocket *socket, void *data, size_t len) {
170
170
int x = (int )(input -> x * scale_x + window_pos .x ),
171
171
y = (int )(input -> y * scale_y + window_pos .y );
172
172
173
- //printf("mouse absolute %f , %f \n", x, y);
173
+ //printf("mouse absolute %d , %d \n", x, y);
174
174
SetCursorPos (x , y );
175
175
}
176
176
177
177
if ( type & input_type_mouse_relative ) {
178
178
int x = (int )(input -> x * self -> mouse_speed ),
179
179
y = (int )(input -> y * self -> mouse_speed );
180
180
181
- //printf("mouse relative %f , %f \n", x, y);
181
+ //printf("mouse relative %d , %d \n", x, y);
182
182
mouse_event (MOUSEEVENTF_MOVE , x , y , 0 , NULL );
183
183
}
184
184
185
185
if ( type & input_type_mouse_button ) {
186
- //printf("mouse button %d\n", u16data[1] );
186
+ //printf("mouse button %d\n", input->flags );
187
187
mouse_event (input -> flags , 0 , 0 , 0 , NULL );
188
188
}
189
189
}
0 commit comments