<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCMouseInput",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCMouseInput"
  },
  "title" : "GCMouseInput"
}
-->

# GCMouseInput

A controller profile that tracks input from a mouse.

```
class GCMouseInput
```

## Overview

This profile supports a mouse with the following features:

- A two-axis cursor and scroll
- A left button
- An optional right button
- An optional middle button
- An optional set of auxiliary buttons

This profile provides only raw mouse movement delta values. For the cursor position at a specific time, use the <doc://com.apple.documentation/documentation/UIKit/UIHoverGestureRecognizer> class and the `NSEvent` <doc://com.apple.documentation/documentation/AppKit/NSEvent/mouseLocation> method.

## Topics

### Getting Change Information

[`mouseMovedHandler`](/documentation/GameController/GCMouseInput/mouseMovedHandler)

The block that the profile calls when the mouse moves.

[`GCMouseMoved`](/documentation/GameController/GCMouseMoved)

The signature for the block that the mouse input profile calls when the mouse moves.

### Accessing Buttons

[`leftButton`](/documentation/GameController/GCMouseInput/leftButton)

The left button on the mouse.

[`rightButton`](/documentation/GameController/GCMouseInput/rightButton)

The optional right button on the mouse.

[`middleButton`](/documentation/GameController/GCMouseInput/middleButton)

The optional middle button on the mouse.

[`auxiliaryButtons`](/documentation/GameController/GCMouseInput/auxiliaryButtons)

The optional additional buttons on the mouse.

### Scrolling

[`scroll`](/documentation/GameController/GCMouseInput/scroll)

The location of the directional pad cursor with an undefined range.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)