( x: number, y: number, button: LinuxPointerButton, xdoBtn: string, ydoCode: string, )
| 73 | } |
| 74 | |
| 75 | async function clickLinuxButton( |
| 76 | x: number, |
| 77 | y: number, |
| 78 | button: LinuxPointerButton, |
| 79 | xdoBtn: string, |
| 80 | ydoCode: string, |
| 81 | ): Promise<void> { |
| 82 | const provider = resolveLinuxInputProvider(); |
| 83 | if (provider) { |
| 84 | await provider.click(x, y, button); |
| 85 | return; |
| 86 | } |
| 87 | |
| 88 | await clickButton(x, y, xdoBtn, ydoCode); |
| 89 | } |
| 90 | |
| 91 | export async function pressLinux(x: number, y: number): Promise<void> { |
| 92 | await clickLinuxButton(x, y, 'primary', '1', '0xC0'); |
no test coverage detected