
# ISpaceBallListener interface

*No description yet.*

```csharp
public interface ISpaceBallListener
```

**Namespace:** EDP · **Assembly:** Altium.SDK.Interfaces

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [Activate](#activate) | `void` |  |
| [Deactivate](#deactivate) | `void` |  |
| [DoKeyDown](#dokeydown) | `void` |  |
| [DoKeyUp](#dokeyup) | `void` |  |
| [DoSensorInput](#dosensorinput) | `void` |  |

### Activate

*No description yet.*

```csharp
void Activate();
```

**Returns:** nothing (`void`)

### Deactivate

*No description yet.*

```csharp
void Deactivate();
```

**Returns:** nothing (`void`)

### DoKeyDown

*No description yet.*

```csharp
void DoKeyDown(int argKeyCode);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argKeyCode` | `int` | value |

**Returns:** nothing (`void`)

### DoKeyUp

*No description yet.*

```csharp
void DoKeyUp(int argKeyCode);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argKeyCode` | `int` | value |

**Returns:** nothing (`void`)

### DoSensorInput

*No description yet.*

```csharp
void DoSensorInput(SpaceBallVector argTranslation, SpaceBallVector argxis, float argngle);
void DoSensorInput(ISpaceBallVector argTranslation, ISpaceBallVector argxis, float argngle);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argTranslation` | [SpaceBallVector](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/SpaceBallVector.md) | value |
| `argxis` | [SpaceBallVector](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/SpaceBallVector.md) | value |
| `argngle` | `float` | value |

**Returns:** nothing (`void`)

The first overload is an extension method of `ISpaceBallListenerHelper` (`using EDP;`) with typed parameters; the second is declared by the interface.

## Accepted by

[ISpaceBall.AddListener](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ISpaceBall.md#addlistener), [ISpaceBall.RemoveListener](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ISpaceBall.md#removelistener)
