---
name: "CL_InputAxis_Basic"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_InputAxis_Basic"
---

# CL\_InputAxis\_Basic(3)

CL\_InputAxis interface used to ease manual implementation of an input axis.

## NAME

CL\_InputAxis\_Basic - CL\_InputAxis interface used to ease manual implementation of an input axis.

## CLASS MEMBERS

- **CL\_InputAxis\_Basic**()

  - **CL\_InputAxis\_Basic**(

  ```
  float pos)
  ```

- virtual **~CL\_InputAxis\_Basic**()

  - virtual float **get\_pos**()

  - void **set\_pos**(

  ```
  float pos)
  ```

## MEMBERS WITH DESCRIPTIONS

- **CL\_InputAxis\_Basic**()

  ```
  Description:
  ```

  Constructs an axis standing in center position.

- **CL\_InputAxis\_Basic**(

  ```
  float pos)
  ```

  ```
  Parameters:
  pos - Initial axis position. Range -1 to 1.
  ```

  ```
  Description:
  ```

  Constructs an axis standing in position *pos*.

- virtual **~CL\_InputAxis\_Basic**()

  ```
  Description:
  ```

- virtual float **get\_pos**()

  ```
  Description:
  ```

  Returns the current axis position.

  ```
  Return value:
  ```

  The current axis position.

- void **set\_pos**(

  ```
  float pos)
  ```

  ```
  Parameters:
  pos - New axis position. Range -1 to 1.
  ```

  ```
  Description:
  ```

  Set the current axis position.

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
