---
title: "inputDeviceTopRight"
description: "The top right corner of the indirect pointer input device we're interacting with, where (0, 0) is the top left corner of the indirect pointer input device."
type: "property"
lastmod: "2026-05-08T01:17:01.227442Z"
---
## API Reference

> Source set: Common

```kotlin
val IndirectPointerInjectionScope.inputDeviceTopRight: Offset
```

The top right corner of the indirect pointer input device we're interacting with, where (0, 0) is
the top left corner of the indirect pointer input device. Note: This is not related to the screen
coordinates.

Note that `inputDeviceTopRight.x != inputDeviceWidth`, see [inputDeviceRight](/jetpack-compose/androidx.compose.ui/ui-test/properties/inputDeviceRight).
