---
title: GCMouseInput
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gcmouseinput
---

# GCMouseInput

A controller profile that tracks input from a mouse.

## Declaration

```swift
class GCMouseInput
```

## Overview

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 UIHoverGestureRecognizer class and the NSEvent mouseLocation method.

## Topics

### Getting Change Information

- [mouseMovedHandler](gamecontroller/gcmouseinput/mousemovedhandler.md)
- [GCMouseMoved](gamecontroller/gcmousemoved.md)

### Accessing Buttons

- [leftButton](gamecontroller/gcmouseinput/leftbutton.md)
- [rightButton](gamecontroller/gcmouseinput/rightbutton.md)
- [middleButton](gamecontroller/gcmouseinput/middlebutton.md)
- [auxiliaryButtons](gamecontroller/gcmouseinput/auxiliarybuttons.md)

### Scrolling

- [scroll](gamecontroller/gcmouseinput/scroll.md)

## Relationships

### Inherits From

- [GCPhysicalInputProfile](gamecontroller/gcphysicalinputprofile.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Accessing controller profiles

- [extendedGamepad](gamecontroller/gccontroller/extendedgamepad.md)
- [GCPhysicalInputProfile](gamecontroller/gcphysicalinputprofile.md)
- [GCKeyboardInput](gamecontroller/gckeyboardinput.md)
- [GCExtendedGamepad](gamecontroller/gcextendedgamepad.md)
- [GCDualShockGamepad](gamecontroller/gcdualshockgamepad.md)
- [GCXboxGamepad](gamecontroller/gcxboxgamepad.md)
- [GCDualSenseGamepad](gamecontroller/gcdualsensegamepad.md)
- [microGamepad](gamecontroller/gccontroller/microgamepad.md)
- [GCMicroGamepad](gamecontroller/gcmicrogamepad.md)
- [GCDirectionalGamepad](gamecontroller/gcdirectionalgamepad.md)
- [motion](gamecontroller/gccontroller/motion.md)
- [physicalInputProfile](gamecontroller/gccontroller/physicalinputprofile.md)
- [gamepad](gamecontroller/gccontroller/gamepad.md)
