handa-opengl-0.1.13.0: Utility functions for OpenGL and GLUT

Copyright(c) 2015 Brian W Bush
LicenseMIT
MaintainerBrian W Bush <consult@brianwbush.info>
StabilityStable
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Graphics.UI.Handa.Keyboard

Contents

Description

Functions for utilizing keyboard input.

Synopsis

Functions

keyboardPosition Source

Arguments

:: Num a 
=> Vector3 a

The amount to incrementdecrement the xy/z coordinate for each key press.

-> IORef (Vector3 a)

A reference to the current position.

-> KeyboardMouseCallback

The GLUT keyboard/mouse callback.

Construct a callback for translating key presses into three dimensional movement.

  • The plus and minus keys, respectively, increment and decrement the y coordinate.
  • The right and left keys, respectively, increment and decrement the x coordinate.
  • The down and up keys, respectively, increment and decrment the z coordinate.