---
name: "SDL_WarpMouse"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_WarpMouse"
---

# SDL\_WarpMouse(3)

Set the position of the mouse cursor.

## NAME

SDL\_WarpMouse - Set the position of the mouse cursor.

## SYNOPSIS

**#include "SDL.h"**

**void SDL\_WarpMouse**(**Uint16 x, Uint16 y**);

## DESCRIPTION

Set the position of the mouse cursor (generates a mouse motion event).

## SEE ALSO

**SDL\_MouseMotionEvent**
