| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
float x;why not assign to norm_x? that removes both the else branches.
display::Display::Rotation panel_rotation =const
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
display::Display primary_display = screen->GetPrimaryDisplay();What happens in a multi-monitor setup? Do we need to consider secondary displays?
// In ChromeOS, when a display is not installed right side up, we would neednit" paraphrase comment in terms of panel rotation.
```
// In ChromeOS, for rotate panel, we would need ....
```
// to apply a rotation to map the tablet to the display correctly.apply rotation to what?
cursor_->MoveCursorTo(gfx::PointF(x, y));By account for panel rotation for the cursor position, are the mouse/touch events also correctly mapped?
}We can format this as such:
```
float x = norm_x;
float y = norm_y;
#if BUILDFLAG(IS_CHROMEOS)
const display::Screen* screen = display::Screen::Get();
if (screen) {
.....
}
#endif // BUILDFLAG(IS_CHROMEOS)
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
don't you need a unit test?
Test added.
why not assign to norm_x? that removes both the else branches.
Done
// In ChromeOS, when a display is not installed right side up, we would neednit" paraphrase comment in terms of panel rotation.
```
// In ChromeOS, for rotate panel, we would need ....
```
Done
// to apply a rotation to map the tablet to the display correctly.Vincent Chiangapply rotation to what?
Adjusted comment.
display::Display primary_display = screen->GetPrimaryDisplay();What happens in a multi-monitor setup? Do we need to consider secondary displays?
I've tested this, the touch tablet will only be able to mouse cursor on the primary display. This is true for all regular Chromebook.
display::Display::Rotation panel_rotation =Vincent Chiangconst
Done
By account for panel rotation for the cursor position, are the mouse/touch events also correctly mapped?
Yup
We can format this as such:
```
float x = norm_x;
float y = norm_y;#if BUILDFLAG(IS_CHROMEOS)
const display::Screen* screen = display::Screen::Get();
if (screen) {
.....
}#endif // BUILDFLAG(IS_CHROMEOS)
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void TabletEventConverterEvdev::UpdateCursor() {Tablet in this context refers only to these external touch/pen devices?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
float y = norm_y;can we create gfx::PointF then transpose/transform?
#if BUILDFLAG(IS_CHROMEOS)AFAIK this class shoulod be cros only
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Tablet in this context refers only to these external touch/pen devices?
AFAIK yes, @osh...@chromium.org can probably confirm.
can we create gfx::PointF then transpose/transform?
Done
AFAIK this class shoulod be cros only
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
void TabletEventConverterEvdev::UpdateCursor() {Vincent ChiangTablet in this context refers only to these external touch/pen devices?
AFAIK yes, @osh...@chromium.org can probably confirm.
Yes, I wish there is a better name for this. Maybe we can rename to PenTablet ?
#if BUILDFLAG(IS_CHROMEOS)nit: remove this as well?
struct input_event mock_kernel_queue[] = {std::array
struct input_event mock_kernel_queue[] = {ditto
struct input_event mock_kernel_queue[] = {ditto
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nit: remove this as well?
Done
struct input_event mock_kernel_queue[] = {Vincent Chiangstd::array
Done
struct input_event mock_kernel_queue[] = {Vincent Chiangditto
Done
struct input_event mock_kernel_queue[] = {Vincent Chiangditto
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Compensate tablet input with panel orientation
Add rotation logic to TabletEventConverterEvdev so devices with none-0
panel orientation can use tablet devices. The change adds a transform
to tablet input coordinates before updating cursor location.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |