This file is indexed.

/usr/share/doc/libghc-sdl-doc/html/Graphics-UI-SDL-Joystick.html is in libghc-sdl-doc 0.6.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.SDL.Joystick</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-SDL-Joystick.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-SDL-Joystick.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">SDL-0.6.3: Binding to libSDL</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>lemmih@gmail.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Graphics.UI.SDL.Joystick</p></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:countAvailable">countAvailable</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:tryName">tryName</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:name">name</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:tryOpen">tryOpen</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a>)</li><li class="src short"><a href="#v:open">open</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a></li><li class="src short"><a href="#v:opened">opened</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:index">index</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; JoystickIndex</li><li class="src short"><a href="#v:axesAvailable">axesAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:ballsAvailable">ballsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:hatsAvailable">hatsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:buttonsAvailable">buttonsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:update">update</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:getAxis">getAxis</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></li><li class="src short"><a href="#v:getHat">getHat</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-SDL-Types.html#t:Hat">Hat</a>]</li><li class="src short"><a href="#v:getButton">getButton</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:getBall">getBall</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a>))</li><li class="src short"><a href="#v:close">close</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:countAvailable" class="def">countAvailable</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-SDL-Joystick.html#countAvailable" class="link">Source</a></p><div class="doc"><p>Counts the number of joysticks attached to the system.
</p></div></div><div class="top"><p class="src"><a name="v:tryName" class="def">tryName</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)<a href="src/Graphics-UI-SDL-Joystick.html#tryName" class="link">Source</a></p><div class="doc"><p>Gets joystick name. Returns <code>Nothing</code> on error.
</p></div></div><div class="top"><p class="src"><a name="v:name" class="def">name</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Graphics-UI-SDL-Joystick.html#name" class="link">Source</a></p><div class="doc"><p>Gets joystick name. Throws an exception on error.
</p></div></div><div class="top"><p class="src"><a name="v:tryOpen" class="def">tryOpen</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a>)<a href="src/Graphics-UI-SDL-Joystick.html#tryOpen" class="link">Source</a></p><div class="doc"><p>Opens a joystick for use. Returns <code>Nothing</code> on error.
</p></div></div><div class="top"><p class="src"><a name="v:open" class="def">open</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a><a href="src/Graphics-UI-SDL-Joystick.html#open" class="link">Source</a></p><div class="doc"><p>Opens a joystick for use. Throws an exception on error.
</p></div></div><div class="top"><p class="src"><a name="v:opened" class="def">opened</a> :: JoystickIndex -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-SDL-Joystick.html#opened" class="link">Source</a></p><div class="doc"><p>Determines if a joystick has been opened.
</p></div></div><div class="top"><p class="src"><a name="v:index" class="def">index</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; JoystickIndex<a href="src/Graphics-UI-SDL-Joystick.html#index" class="link">Source</a></p><div class="doc"><p>Gets the index of an <code>Joystick</code>.
</p></div></div><div class="top"><p class="src"><a name="v:axesAvailable" class="def">axesAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-SDL-Joystick.html#axesAvailable" class="link">Source</a></p><div class="doc"><p>Gets the number of joystick axes.
</p></div></div><div class="top"><p class="src"><a name="v:ballsAvailable" class="def">ballsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-SDL-Joystick.html#ballsAvailable" class="link">Source</a></p><div class="doc"><p>Gets the number of joystick trackballs.
</p></div></div><div class="top"><p class="src"><a name="v:hatsAvailable" class="def">hatsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-SDL-Joystick.html#hatsAvailable" class="link">Source</a></p><div class="doc"><p>Gets the number of joystick hats.
</p></div></div><div class="top"><p class="src"><a name="v:buttonsAvailable" class="def">buttonsAvailable</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-SDL-Joystick.html#buttonsAvailable" class="link">Source</a></p><div class="doc"><p>Gets the number of joystick buttons.
</p></div></div><div class="top"><p class="src"><a name="v:update" class="def">update</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-UI-SDL-Joystick.html#update" class="link">Source</a></p><div class="doc"><p>Updates the state of all joysticks.
</p></div></div><div class="top"><p class="src"><a name="v:getAxis" class="def">getAxis</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a><a href="src/Graphics-UI-SDL-Joystick.html#getAxis" class="link">Source</a></p><div class="doc"><p>Gets the current state of an axis.
</p></div></div><div class="top"><p class="src"><a name="v:getHat" class="def">getHat</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-SDL-Types.html#t:Hat">Hat</a>]<a href="src/Graphics-UI-SDL-Joystick.html#getHat" class="link">Source</a></p><div class="doc"><p>Gets the current state of a joystick hat.
</p></div></div><div class="top"><p class="src"><a name="v:getButton" class="def">getButton</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-SDL-Joystick.html#getButton" class="link">Source</a></p><div class="doc"><p>Gets the current state of a given button on a given joystick.
</p></div></div><div class="top"><p class="src"><a name="v:getBall" class="def">getBall</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a>))<a href="src/Graphics-UI-SDL-Joystick.html#getBall" class="link">Source</a></p><div class="doc"><p>Gets relative trackball motion.
</p></div></div><div class="top"><p class="src"><a name="v:close" class="def">close</a> :: <a href="Graphics-UI-SDL-Types.html#t:Joystick">Joystick</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-UI-SDL-Joystick.html#close" class="link">Source</a></p><div class="doc"><p>Force finalization of a previous opened <code>Joystick</code>. Only supported with GHC.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>