How can i change the keyboard actions into the emulator touch actions?
Genymotion lets you bind any keyboard key (or mouse button) to a touch event (tap, swipe, long‑press, multi‑touch). This is handy for games like Arknights : Endfield where you want the WASD keys or arrow keys to act like a virtual joystick.
1. Open the Keyboard‑to‑Touch mapper
1. Launch Genymotion Desktop and start the virtual device.
2. In the emulator window, click the gear icon (⚙️) in the toolbar → “Keyboard mapping” (or press ⌘ K on macOS).
2. Add a new mapping
| Step | Action |
|------|--------|
| a. Choose the key | Click “Add mapping”, then press the keyboard key you want to use (e.g., W, A, S, D, Space, etc.). |
| b. Select the touch type | From the dropdown choose Tap, Swipe, Long‑press, or Multi‑touch. |
| c. Define the screen coordinates | A small overlay appears on the device screen. Click the point where you want the tap to occur (or drag to set swipe start/end). You can also manually enter X/Y values for precision. |
| d. (Optional) Set duration | For Long‑press or Swipe, specify the press time (ms) or swipe speed. |
| e. Save | Click “OK” to add the mapping. |
3. Common mappings for Arknights : Endfield
| Keyboard key | Touch action | Screen position (example) |
|--------------|--------------|---------------------------|
| W | Swipe up (move joystick forward) | Start (540, 1600) → End (540, 900) |
| A | Swipe left | Start (540, 1200) → End (200, 1200) |
| S | Swipe down | Start (540, 1200) → End (540, 1600) |
| D | Swipe right | Start (540, 1200) → End (880, 1200) |
| Space | Tap on the “Attack” button | (960, 1800) |
| Shift | Long‑press on “Skill 1” | (300, 1800) (hold ≈ 800 ms) |
| Ctrl | Tap on “Skill 2” | (660, 1800) |
(Coordinates assume a 1080 × 1920 portrait screen; adjust if you changed the resolution.)4. Test the mapping
- With the device running, press the key you just mapped.
- You should see a visual indicator (a small circle) at the touched point, and the game will react as if you tapped there.
5. Edit / delete mappings
- Re‑open the Keyboard mapping window.
- Select a mapping → Edit (pencil icon) or Delete (trash icon).
6. Save a preset (optional)
If you want to reuse the same key‑to‑touch layout on other devices:
1. In the mapping window, click “Export preset” → give it a name (e.g., Arknights‑Endfield).
2. Later, on another device, click “Import preset” and select the file.
7. Tips for a smooth experience
- Disable “Capture mouse” (toolbar mouse icon) when you need to move the cursor outside the emulator without triggering touches.
- Use “Lock orientation” if the game is portrait‑only; this prevents accidental rotation when you press keys.
- Increase DPI scaling (Settings → Display) if you find the on‑screen coordinates hard to target.
That’s all you need to turn your keyboard into a virtual‑joystick/touch controller for Arknights : Endfield. 🎮🖥️ Feel free to ask if you need a specific mapping example!