You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a bug, i just need help to understand what i am doing wrong.
i use a home made web browser spice client to connect to KVM (version 7) virtual machine
I send touchscreen coordinate (mono or multi touch depending on the device i use) with virtio_input_send to a virtio-touchscreen-pci device present on the machine
On windows 10, i installed the virtio driver version : virtio-win-0.1.229 (found on fedora)
I can see the "touchscreen device" (ecran tactile in french) in windows devices :
Here is the coordinate gap that happen :
touchscreen_offset.online-video-cutter.com.mp4
How i send the coordinate to the driver :
staticvoid_mts_touch_down(MTSState*mts_state , inttracking_id , intx , inty , intpressure) {
/* Get first available slot for the new pointer. */constintslot_index=_get_available_touch_index();
/* Make sure there is a place for the pointer. */if (slot_index >= 0) {
/* Initialize pointer's entry. */mts_state->tracked_ptr_num++;
mts_state->tracked_touches[slot_index].tracking_id=tracking_id;
mts_state->tracked_touches[slot_index].x=x;
mts_state->tracked_touches[slot_index].y=y;
mts_state->tracked_touches[slot_index].pressure=pressure;
if (slot_index!=mts_state->current_slot) {
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_SLOT , slot_index);
mts_state->current_slot=slot_index;
}
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_TRACKING_ID , slot_index);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_POSITION_X , x);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_POSITION_Y , y);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_TOOL_TYPE , MT_TOOL_FINGER);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_PRESSURE , pressure);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_ORIENTATION , 0);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_TOUCH_MAJOR , MTS_TOUCH_AXIS_DEFAULT);
mt_virtio_input_send(EV_ABS , LINUX_ABS_MT_TOUCH_MINOR , MTS_TOUCH_AXIS_DEFAULT);
}
else {
// DEBUG_INFO("MTS touch count is exceeded.");return;
}
}
The coordinate were correct on qemu version 5, but only in resolution 720p or under, on qemu 7 there is this offset issue in every resolution
If you have any idea of what i am doing wrong, maybe you can help me
Can i find driver logs somewhere? maybe i can add log to the driver and build it ?
Thanks a lot !
The text was updated successfully, but these errors were encountered:
Hello,
It's not a bug, i just need help to understand what i am doing wrong.
i use a home made web browser spice client to connect to KVM (version 7) virtual machine
I send touchscreen coordinate (mono or multi touch depending on the device i use) with virtio_input_send to a virtio-touchscreen-pci device present on the machine
On windows 10, i installed the virtio driver version : virtio-win-0.1.229 (found on fedora)
I can see the "touchscreen device" (ecran tactile in french) in windows devices :
Here is the coordinate gap that happen :
touchscreen_offset.online-video-cutter.com.mp4
How i send the coordinate to the driver :
The coordinate were correct on qemu version 5, but only in resolution 720p or under, on qemu 7 there is this offset issue in every resolution
If you have any idea of what i am doing wrong, maybe you can help me
Can i find driver logs somewhere? maybe i can add log to the driver and build it ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: