Play Android games with a PC mouse and keyboard using Swarmbot mappings and Game Mode
Create a Swarmbot keyboard-mapping profile, use the virtual joystick for WASD movement, turn mouse movement into camera control with Game Mode, and place mouse-button touches over fire, aim and other controls.
Swarmbot can turn PC keyboard and mouse input into touch controls on a streamed Android device. It is designed for players who want WASD movement, mouse-look camera control, and mouse buttons for actions such as firing or aiming. To begin, open a device stream, choose Keyboard Mapping on the right, create a profile, and configure the virtual joystick, Game Mode and action points.
There is no single layout that fits every game. Joysticks, fire buttons and camera areas move between games, modes and screen orientations, so save a named profile for each layout and switch profiles from the Keyboard Mapping menu.
Start with the virtual joystick for movement
Action and shooter games commonly place a virtual stick in the lower-left corner. Recording W, A, S and D as four independent swipes can make combinations compete for the same touch area. Holding W and then pressing A may leave the game responding to only one direction.
Swarmbot's Virtual Joystick treats all four directions as one continuous touch:
- Enable Virtual Joystick in the mapping editor.
- Choose Place on Screen and click the center of the game's movement stick.
- Adjust the radius to roughly match the stick's travel area.
- Keep the default W, A, S and D keys, or capture different keys for each direction.
- Save and enable the profile in the stream window.
When W+A is held, Swarmbot moves the same touch toward the upper-left instead of starting two unrelated swipes. It keeps that pointer while the direction changes and releases it after the last direction key is released. Android itself tracks an active touch with a stable pointer ID; simultaneous contacts need separate IDs. Read Android's multi-touch guide
For the first pass, enable only the joystick and verify the four cardinal directions plus diagonals in an actual match. If the on-screen stick appears but the character does not move, check the center, the radius and whether the game changed its layout after entering gameplay.
Add Game Mode for mouse-look camera control
Game Mode covers the camera area on the right side of many games. Once entered, the mouse is locked to the stream, and mouse movement continuously moves a held touch on the device. You do not need to press and drag for every camera turn.
Set it up in this order:
- Enable Game Mode in the same keyboard-mapping profile.
- Place the Camera Touch in a clear part of the game's right-side look area.
- Adjust Control Range so the touch does not run into edge buttons or leave the swipe area accepted by the game.
- Start with low sensitivity, enter the game, and increase it gradually until mouse movement and camera rotation feel proportional.
- Save and enable the profile, then choose Enter from the Keyboard Mapping menu.
The web Pointer Lock API supplies relative mouse movement while preventing the cursor from stopping at a screen edge, which is why it is commonly used for first-person camera controls. Read MDN's Pointer Lock overview While Swarmbot Game Mode is active, it keeps the camera touch held and turns mouse deltas into moves of that same touch; it releases the touch when you exit.
Press Esc to leave mouse capture. If the Enter button reports that mouse capture is unsupported, use the Swarmbot desktop client or a browser environment that supports Pointer Lock. MDN notes that Pointer Lock is not available in every browser environment.
Place mouse buttons over fire, aim and skills
Game Mode can assign separate touch points to the left, right and middle buttons, plus the back and forward side buttons. A practical starting layout is:
- left button over Fire;
- right button over Aim or Scope;
- middle or side buttons over Reload, Jump or Crouch.
Enable a button under Mouse Button Touches, select Place, and click the matching control on the device screen. Swarmbot creates a separate touch when the mouse button goes down and releases it when the button comes up, so it can operate alongside the camera touch and virtual joystick.
Do not map every side button immediately. Start with movement, camera, fire and aim. Add reload or abilities only after those four behave correctly. If a game's buttons change between characters, vehicles or modes, save separate profiles rather than forcing one layout to cover all of them.
Record taps and swipes for ordinary keys
Keyboard Mapping also records a tap or swipe and binds it to any key. Space can trigger Jump, R can tap Reload, and another key can replay a short directional swipe.
Choose Start Recording, click or drag on the stream, then press the key you want to bind. A held action can keep its last touch point active; a normal tap is released after the action completes. When the profile is saved, keys already assigned to the virtual joystick are not duplicated as ordinary recorded paths.
Mapped actions receive independent touch pointers, so a movement key can remain down while the camera, a mouse button or another binding is active. The current profile can maintain up to nine mapped touch points at once. Whether every combination is accepted still depends on the game's own multi-touch handling.
A setup order that is easier to tune
- Open the device stream and enter the game's real gameplay screen.
- Create a profile named for the game and layout.
- Configure only the virtual joystick and test single and diagonal movement.
- Enable Game Mode, place the camera center, set its range and begin with low sensitivity.
- Add left and right mouse buttons and verify both press and release behavior.
- Record ordinary keys for jump, reload, inventory and similar actions.
- Save and enable the profile. Enter mouse capture from the mapping menu and use Esc to exit.
If the aspect ratio, orientation or game UI changes, place the controls again instead of trying to compensate only with sensitivity. If every click is offset in the same direction, first check whether the displayed stream and device touch coordinates align rather than moving every binding in the opposite direction.
For first-time device setup, see the Swarmbot USB, Wi-Fi, ACC and shared-device connection guide. If you plan to control several devices, read device-wall selection and synchronized control before deciding which game inputs are safe to broadcast to other screens.