HGamer3D-OIS-Binding (empty) → 0.1.0
raw patch · 95 files changed
+6418/−0 lines, 95 filesdep +HGamer3D-Datadep +HGamer3D-Ogre-Bindingdep +basesetup-changed
Dependencies added: HGamer3D-Data, HGamer3D-Ogre-Binding, base, haskell98
Files
- C2HS.hs +238/−0
- HGamer3D-OIS-Binding.cabal +35/−0
- HGamer3D/Bindings/OIS/ClassAxis.hs +75/−0
- HGamer3D/Bindings/OIS/ClassButton.hs +65/−0
- HGamer3D/Bindings/OIS/ClassComponent.hs +65/−0
- HGamer3D/Bindings/OIS/ClassConditionalEffect.hs +65/−0
- HGamer3D/Bindings/OIS/ClassConstantEffect.hs +65/−0
- HGamer3D/Bindings/OIS/ClassEffect.hs +77/−0
- HGamer3D/Bindings/OIS/ClassEnvelope.hs +65/−0
- HGamer3D/Bindings/OIS/ClassEventArg.hs +65/−0
- HGamer3D/Bindings/OIS/ClassException.hs +65/−0
- HGamer3D/Bindings/OIS/ClassFactoryCreator.hs +134/−0
- HGamer3D/Bindings/OIS/ClassForceEffect.hs +65/−0
- HGamer3D/Bindings/OIS/ClassForceFeedback.hs +87/−0
- HGamer3D/Bindings/OIS/ClassInputManager.hs +152/−0
- HGamer3D/Bindings/OIS/ClassInterface.hs +65/−0
- HGamer3D/Bindings/OIS/ClassJoyStick.hs +126/−0
- HGamer3D/Bindings/OIS/ClassJoyStickEvent.hs +65/−0
- HGamer3D/Bindings/OIS/ClassJoyStickListener.hs +65/−0
- HGamer3D/Bindings/OIS/ClassJoyStickState.hs +75/−0
- HGamer3D/Bindings/OIS/ClassKeyEvent.hs +65/−0
- HGamer3D/Bindings/OIS/ClassKeyListener.hs +65/−0
- HGamer3D/Bindings/OIS/ClassKeyboard.hs +156/−0
- HGamer3D/Bindings/OIS/ClassMouse.hs +88/−0
- HGamer3D/Bindings/OIS/ClassMouseEvent.hs +65/−0
- HGamer3D/Bindings/OIS/ClassMouseListener.hs +65/−0
- HGamer3D/Bindings/OIS/ClassMouseState.hs +75/−0
- HGamer3D/Bindings/OIS/ClassObject.hs +148/−0
- HGamer3D/Bindings/OIS/ClassPeriodicEffect.hs +65/−0
- HGamer3D/Bindings/OIS/ClassPov.hs +65/−0
- HGamer3D/Bindings/OIS/ClassPtr.hs +130/−0
- HGamer3D/Bindings/OIS/ClassRampEffect.hs +65/−0
- HGamer3D/Bindings/OIS/ClassSlider.hs +65/−0
- HGamer3D/Bindings/OIS/ClassVector3.hs +65/−0
- HGamer3D/Bindings/OIS/EnumAddOnFactories.hs +65/−0
- HGamer3D/Bindings/OIS/EnumComponentType.hs +74/−0
- HGamer3D/Bindings/OIS/EnumEDirection.hs +61/−0
- HGamer3D/Bindings/OIS/EnumEForce.hs +74/−0
- HGamer3D/Bindings/OIS/EnumEType.hs +95/−0
- HGamer3D/Bindings/OIS/EnumIType.hs +55/−0
- HGamer3D/Bindings/OIS/EnumKeyCode.hs +491/−0
- HGamer3D/Bindings/OIS/EnumModifier.hs +65/−0
- HGamer3D/Bindings/OIS/EnumMouseButtonID.hs +80/−0
- HGamer3D/Bindings/OIS/EnumTextTranslationMode.hs +56/−0
- HGamer3D/Bindings/OIS/EnumType.hs +71/−0
- HGamer3D/Bindings/OIS/TypeHG3DClass.hs +59/−0
- HGamer3D/Bindings/OIS/Utils.hs +100/−0
- LICENSE +13/−0
- Setup.hs +22/−0
- include/ClassAxis.h +40/−0
- include/ClassButton.h +38/−0
- include/ClassComponent.h +38/−0
- include/ClassConditionalEffect.h +38/−0
- include/ClassConstantEffect.h +38/−0
- include/ClassEffect.h +40/−0
- include/ClassEnvelope.h +38/−0
- include/ClassEventArg.h +38/−0
- include/ClassException.h +38/−0
- include/ClassFactoryCreator.h +49/−0
- include/ClassForceEffect.h +38/−0
- include/ClassForceFeedback.h +42/−0
- include/ClassInputManager.h +53/−0
- include/ClassInterface.h +38/−0
- include/ClassJoyStick.h +49/−0
- include/ClassJoyStickEvent.h +38/−0
- include/ClassJoyStickListener.h +38/−0
- include/ClassJoyStickState.h +40/−0
- include/ClassKeyEvent.h +38/−0
- include/ClassKeyListener.h +38/−0
- include/ClassKeyboard.h +55/−0
- include/ClassMouse.h +42/−0
- include/ClassMouseEvent.h +38/−0
- include/ClassMouseListener.h +38/−0
- include/ClassMouseState.h +40/−0
- include/ClassObject.h +53/−0
- include/ClassPeriodicEffect.h +38/−0
- include/ClassPov.h +38/−0
- include/ClassPtr.h +123/−0
- include/ClassRampEffect.h +38/−0
- include/ClassSlider.h +38/−0
- include/ClassVector3.h +38/−0
- include/EnumAddOnFactories.h +44/−0
- include/EnumComponentType.h +47/−0
- include/EnumEDirection.h +49/−0
- include/EnumEForce.h +47/−0
- include/EnumEType.h +55/−0
- include/EnumIType.h +43/−0
- include/EnumKeyCode.h +186/−0
- include/EnumModifier.h +44/−0
- include/EnumMouseButtonID.h +43/−0
- include/EnumTextTranslationMode.h +44/−0
- include/EnumType.h +46/−0
- include/OISDllDefines.h +45/−0
- include/TypeHG3DClass.h +41/−0
- include/Utils.h +21/−0
+ C2HS.hs view
@@ -0,0 +1,238 @@+-- C->Haskell Compiler: Marshalling library +-- +-- Copyright (c) [1999...2005] Manuel M T Chakravarty +-- +-- Redistribution and use in source and binary forms, with or without +-- modification, are permitted provided that the following conditions are met: +-- +-- 1. Redistributions of source code must retain the above copyright notice, +-- this list of conditions and the following disclaimer. +-- 2. Redistributions in binary form must reproduce the above copyright +-- notice, this list of conditions and the following disclaimer in the +-- documentation and/or other materials provided with the distribution. +-- 3. The name of the author may not be used to endorse or promote products +-- derived from this software without specific prior written permission. +-- +-- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +-- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +-- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN +-- NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +-- +--- Description --------------------------------------------------------------- +-- +-- Language: Haskell 98 +-- +-- This module provides the marshaling routines for Haskell files produced by +-- C->Haskell for binding to C library interfaces. It exports all of the +-- low-level FFI (language-independent plus the C-specific parts) together +-- with the C->HS-specific higher-level marshalling routines. +-- + +module C2HS ( + + -- * Re-export the language-independent component of the FFI + module Foreign, + + -- * Re-export the C language component of the FFI + module Foreign.C, + + -- * Composite marshalling functions + withCStringLenIntConv, peekCStringLenIntConv, withIntConv, withFloatConv, + peekIntConv, peekFloatConv, withBool, peekBool, withEnum, peekEnum, + + -- * Conditional results using 'Maybe' + nothingIf, nothingIfNull, + + -- * Bit masks + combineBitMasks, containsBitMask, extractBitMasks, + + -- * Conversion between C and Haskell types + cIntConv, cFloatConv, cToBool, cFromBool, cToEnum, cFromEnum +) where + + +import Foreign +import Foreign.C + +import Monad (liftM) + + +-- Composite marshalling functions +-- ------------------------------- + +-- Strings with explicit length +-- +withCStringLenIntConv :: Num n => String -> ((CString, n) -> IO a) -> IO a +withCStringLenIntConv s f = withCStringLen s $ \(p, n) -> f (p, fromIntegral n) + +peekCStringLenIntConv :: Integral n => (CString, n) -> IO String +peekCStringLenIntConv (s, n) = peekCStringLen (s, fromIntegral n) + +-- Marshalling of numerals +-- + +withIntConv :: (Storable b, Integral a, Integral b) + => a -> (Ptr b -> IO c) -> IO c +withIntConv = with . fromIntegral + +withFloatConv :: (Storable b, RealFloat a, RealFloat b) + => a -> (Ptr b -> IO c) -> IO c +withFloatConv = with . realToFrac + +peekIntConv :: (Storable a, Integral a, Integral b) + => Ptr a -> IO b +peekIntConv = liftM fromIntegral . peek + +peekFloatConv :: (Storable a, RealFloat a, RealFloat b) + => Ptr a -> IO b +peekFloatConv = liftM realToFrac . peek + + +-- Everything else below is deprecated. +-- These functions are not used by code generated by c2hs. + +{-# DEPRECATED withBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED peekBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED withEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED peekEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED nothingIf "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED nothingIfNull "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED combineBitMasks "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED containsBitMask "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED extractBitMasks "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cIntConv "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFloatConv "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFromBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cToBool "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cToEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} +{-# DEPRECATED cFromEnum "The C2HS module will soon stop providing unnecessary\nutility functions. Please use standard FFI library functions instead." #-} + + +-- Passing Booleans by reference +-- + +withBool :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b +withBool = with . fromBool + +peekBool :: (Integral a, Storable a) => Ptr a -> IO Bool +peekBool = liftM toBool . peek + + +-- Passing enums by reference +-- + +withEnum :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c +withEnum = with . cFromEnum + +peekEnum :: (Enum a, Integral b, Storable b) => Ptr b -> IO a +peekEnum = liftM cToEnum . peek + + +-- Storing of 'Maybe' values +-- ------------------------- + +--TODO: kill off this orphan instance! + +instance Storable a => Storable (Maybe a) where + sizeOf _ = sizeOf (undefined :: Ptr ()) + alignment _ = alignment (undefined :: Ptr ()) + + peek p = do + ptr <- peek (castPtr p) + if ptr == nullPtr + then return Nothing + else liftM Just $ peek ptr + + poke p v = do + ptr <- case v of + Nothing -> return nullPtr + Just v' -> new v' + poke (castPtr p) ptr + + +-- Conditional results using 'Maybe' +-- --------------------------------- + +-- Wrap the result into a 'Maybe' type. +-- +-- * the predicate determines when the result is considered to be non-existing, +-- ie, it is represented by `Nothing' +-- +-- * the second argument allows to map a result wrapped into `Just' to some +-- other domain +-- +nothingIf :: (a -> Bool) -> (a -> b) -> a -> Maybe b +nothingIf p f x = if p x then Nothing else Just $ f x + +-- |Instance for special casing null pointers. +-- +nothingIfNull :: (Ptr a -> b) -> Ptr a -> Maybe b +nothingIfNull = nothingIf (== nullPtr) + + +-- Support for bit masks +-- --------------------- + +-- Given a list of enumeration values that represent bit masks, combine these +-- masks using bitwise disjunction. +-- +combineBitMasks :: (Enum a, Bits b) => [a] -> b +combineBitMasks = foldl (.|.) 0 . map (fromIntegral . fromEnum) + +-- Tests whether the given bit mask is contained in the given bit pattern +-- (i.e., all bits set in the mask are also set in the pattern). +-- +containsBitMask :: (Bits a, Enum b) => a -> b -> Bool +bits `containsBitMask` bm = let bm' = fromIntegral . fromEnum $ bm + in + bm' .&. bits == bm' + +-- |Given a bit pattern, yield all bit masks that it contains. +-- +-- * This does *not* attempt to compute a minimal set of bit masks that when +-- combined yield the bit pattern, instead all contained bit masks are +-- produced. +-- +extractBitMasks :: (Bits a, Enum b, Bounded b) => a -> [b] +extractBitMasks bits = + [bm | bm <- [minBound..maxBound], bits `containsBitMask` bm] + + +-- Conversion routines +-- ------------------- + +-- |Integral conversion +-- +cIntConv :: (Integral a, Integral b) => a -> b +cIntConv = fromIntegral + +-- |Floating conversion +-- +cFloatConv :: (RealFloat a, RealFloat b) => a -> b +cFloatConv = realToFrac + +-- |Obtain C value from Haskell 'Bool'. +-- +cFromBool :: Num a => Bool -> a +cFromBool = fromBool + +-- |Obtain Haskell 'Bool' from C value. +-- +cToBool :: Num a => a -> Bool +cToBool = toBool + +-- |Convert a C enumeration to Haskell. +-- +cToEnum :: (Integral i, Enum e) => i -> e +cToEnum = toEnum . fromIntegral + +-- |Convert a Haskell enumeration to C. +-- +cFromEnum :: (Enum e, Integral i) => e -> i +cFromEnum = fromIntegral . fromEnum
+ HGamer3D-OIS-Binding.cabal view
@@ -0,0 +1,35 @@+Name: HGamer3D-OIS-Binding +Version: 0.1.0 +Synopsis: Library to enable 3D game development for Haskell - OIS Bindings +Description: + Library, to enable 3D game development for Haskell, + based on bindings to 3D Graphics, pyhsics engine and additional libraries. + Current implementation contains the following features: + OGRE Binding, OIS Binding (limited functionality) + Platform: Windows only + Install following packages in sequence: HGamer3D-Data, HGamer3D-Ogre-Binding, HGamer3D-OIS-Binding, HGamer3D-API + License: Apache License, Version 2.0 + +License: OtherLicense +License-file: LICENSE +Author: Dr. Peter Althainz +Maintainer: althainz@googlemail.com +Build-Type: Simple +Cabal-Version: >=1.2 +Homepage: http://www.althainz.de/HGamer3D.html +Category: Game +Extra-source-files: Setup.hs include/EnumKeyCode.h,include/EnumComponentType.h,include/EnumEForce.h,include/EnumIType.h,include/EnumEDirection.h,include/EnumModifier.h,include/EnumTextTranslationMode.h,include/EnumMouseButtonID.h,include/EnumAddOnFactories.h,include/EnumEType.h,include/EnumType.h,include/TypeHG3DClass.h,include/ClassPtr.h,include/Utils.h,include/OISDllDefines.h,include/ClassJoyStickListener.h,include/ClassVector3.h,include/ClassKeyboard.h,include/ClassMouseListener.h,include/ClassMouse.h,include/ClassButton.h,include/ClassJoyStickState.h,include/ClassConditionalEffect.h,include/ClassMouseEvent.h,include/ClassAxis.h,include/ClassPov.h,include/ClassObject.h,include/ClassComponent.h,include/ClassJoyStick.h,include/ClassKeyListener.h,include/ClassInputManager.h,include/ClassPeriodicEffect.h,include/ClassSlider.h,include/ClassFactoryCreator.h,include/ClassEventArg.h,include/ClassConstantEffect.h,include/ClassForceEffect.h,include/ClassEnvelope.h,include/ClassForceFeedback.h,include/ClassEffect.h,include/ClassJoyStickEvent.h,include/ClassMouseState.h,include/ClassRampEffect.h,include/ClassInterface.h,include/ClassKeyEvent.h,include/ClassException.h + +Library + Build-Depends: base >= 3 && < 5, HGamer3D-Data, HGamer3D-Ogre-Binding + + Exposed-modules: HGamer3D.Bindings.OIS.EnumKeyCode,HGamer3D.Bindings.OIS.EnumComponentType,HGamer3D.Bindings.OIS.EnumEForce,HGamer3D.Bindings.OIS.EnumIType,HGamer3D.Bindings.OIS.EnumEDirection,HGamer3D.Bindings.OIS.EnumModifier,HGamer3D.Bindings.OIS.EnumTextTranslationMode,HGamer3D.Bindings.OIS.EnumMouseButtonID,HGamer3D.Bindings.OIS.EnumAddOnFactories,HGamer3D.Bindings.OIS.EnumEType,HGamer3D.Bindings.OIS.EnumType,HGamer3D.Bindings.OIS.TypeHG3DClass,HGamer3D.Bindings.OIS.ClassPtr,HGamer3D.Bindings.OIS.Utils,HGamer3D.Bindings.OIS.ClassJoyStickListener,HGamer3D.Bindings.OIS.ClassVector3,HGamer3D.Bindings.OIS.ClassKeyboard,HGamer3D.Bindings.OIS.ClassMouseListener,HGamer3D.Bindings.OIS.ClassMouse,HGamer3D.Bindings.OIS.ClassButton,HGamer3D.Bindings.OIS.ClassJoyStickState,HGamer3D.Bindings.OIS.ClassConditionalEffect,HGamer3D.Bindings.OIS.ClassMouseEvent,HGamer3D.Bindings.OIS.ClassAxis,HGamer3D.Bindings.OIS.ClassPov,HGamer3D.Bindings.OIS.ClassObject,HGamer3D.Bindings.OIS.ClassComponent,HGamer3D.Bindings.OIS.ClassJoyStick,HGamer3D.Bindings.OIS.ClassKeyListener,HGamer3D.Bindings.OIS.ClassInputManager,HGamer3D.Bindings.OIS.ClassPeriodicEffect,HGamer3D.Bindings.OIS.ClassSlider,HGamer3D.Bindings.OIS.ClassFactoryCreator,HGamer3D.Bindings.OIS.ClassEventArg,HGamer3D.Bindings.OIS.ClassConstantEffect,HGamer3D.Bindings.OIS.ClassForceEffect,HGamer3D.Bindings.OIS.ClassEnvelope,HGamer3D.Bindings.OIS.ClassForceFeedback,HGamer3D.Bindings.OIS.ClassEffect,HGamer3D.Bindings.OIS.ClassJoyStickEvent,HGamer3D.Bindings.OIS.ClassMouseState,HGamer3D.Bindings.OIS.ClassRampEffect,HGamer3D.Bindings.OIS.ClassInterface,HGamer3D.Bindings.OIS.ClassKeyEvent,HGamer3D.Bindings.OIS.ClassException + Other-modules: C2HS + + ghc-options: + cc-options: -Wno-attributes + hs-source-dirs: . + Include-dirs: include + Build-tools: + build-depends: haskell98 + extra-libraries: stdc++.dll HGamer3DOIS
+ HGamer3D/Bindings/OIS/ClassAxis.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassAxis.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassAxis.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassAxis where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassAxis.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassAxis.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassAxis.chs" #-} + + +cOISAClear :: HG3DClass -> IO () +cOISAClear a1 = + withHG3DClass a1 $ \a1' -> + cOISAClear'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\OIS\\ClassAxis.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAxis.chs.h cOISA_clear_c" + cOISAClear'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassButton.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassButton.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassButton.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassButton where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassButton.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassButton.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassButton.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassComponent.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassComponent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassComponent.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassComponent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassComponent.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassComponent.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassComponent.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassConditionalEffect.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassConditionalEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassConditionalEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassConditionalEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassConditionalEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassConditionalEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassConditionalEffect.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassConstantEffect.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassConstantEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassConstantEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassConstantEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassConstantEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassConstantEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassConstantEffect.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassEffect.hs view
@@ -0,0 +1,77 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassEffect.chs" #-} + + +cOISEfGetForceEffect :: HG3DClass -> IO (HG3DClass) +cOISEfGetForceEffect a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISEfGetForceEffect'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassEffect.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassEffect.chs.h cOISEf_getForceEffect_c" + cOISEfGetForceEffect'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassEnvelope.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassEnvelope.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassEnvelope.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassEnvelope where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassEnvelope.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassEnvelope.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassEnvelope.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassEventArg.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassEventArg.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassEventArg.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEvents.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassEventArg where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassEventArg.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassEventArg.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassEventArg.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassException.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassException.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassException.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISException.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassException where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassException.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassException.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassException.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassFactoryCreator.hs view
@@ -0,0 +1,134 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassFactoryCreator.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISFactoryCreator.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassFactoryCreator where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +import HGamer3D.Bindings.OIS.EnumType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} + + +cOISFcTotalDevices :: HG3DClass -> EnumType -> IO (Int) +cOISFcTotalDevices a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISFcTotalDevices'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +; +cOISFcFreeDevices :: HG3DClass -> EnumType -> IO (Int) +cOISFcFreeDevices a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISFcFreeDevices'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 69 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +; +cOISFcVendorExist :: HG3DClass -> EnumType -> String -> IO (Bool) +cOISFcVendorExist a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + withCString a3 $ \a3' -> + alloca $ \a4' -> + cOISFcVendorExist'_ a1' a2' a3' a4' >>= \res -> + peekBoolUtil a4'>>= \a4'' -> + return (a4'') +{-# LINE 75 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +; +cOISFcCreateObject :: HG3DClass -> HG3DClass -> EnumType -> Bool -> String -> IO (HG3DClass) +cOISFcCreateObject a1 a2 a3 a4 a5 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = cIntFromEnum a3} in + let {a4' = fromBool a4} in + withCString a5 $ \a5' -> + alloca $ \a6' -> + cOISFcCreateObject'_ a1' a2' a3' a4' a5' a6' >>= \res -> + peek a6'>>= \a6'' -> + return (a6'') +{-# LINE 83 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +; +cOISFcDestroyObject :: HG3DClass -> HG3DClass -> IO () +cOISFcDestroyObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISFcDestroyObject'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs.h cOISFc_totalDevices_c" + cOISFcTotalDevices'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs.h cOISFc_freeDevices_c" + cOISFcFreeDevices'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs.h cOISFc_vendorExist_c" + cOISFcVendorExist'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs.h cOISFc_createObject_c" + cOISFcCreateObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (CInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassFactoryCreator.chs.h cOISFc_destroyObject_c" + cOISFcDestroyObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassForceEffect.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassForceEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassForceEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassForceEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassForceEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassForceEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassForceEffect.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassForceFeedback.hs view
@@ -0,0 +1,87 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassForceFeedback.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISForceFeedback.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassForceFeedback where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-} + + +cOISFfSetMasterGain :: HG3DClass -> Float -> IO () +cOISFfSetMasterGain a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cOISFfSetMasterGain'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-} +; +cOISFfSetAutoCenterMode :: HG3DClass -> Bool -> IO () +cOISFfSetAutoCenterMode a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cOISFfSetAutoCenterMode'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs.h cOISFf_setMasterGain_c" + cOISFfSetMasterGain'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassForceFeedback.chs.h cOISFf_setAutoCenterMode_c" + cOISFfSetAutoCenterMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassInputManager.hs view
@@ -0,0 +1,152 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassInputManager.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassInputManager where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +import HGamer3D.Bindings.OIS.EnumType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} + + +cOISImGetVersionName :: HG3DClass -> IO (String) +cOISImGetVersionName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cOISImGetVersionName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImInputSystemName :: HG3DClass -> IO (String) +cOISImInputSystemName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cOISImInputSystemName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImGetNumberOfDevices :: HG3DClass -> EnumType -> IO (Int) +cOISImGetNumberOfDevices a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISImGetNumberOfDevices'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImCreateInputObject :: HG3DClass -> EnumType -> Bool -> String -> IO (HG3DClass) +cOISImCreateInputObject a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + let {a3' = fromBool a3} in + withCString a4 $ \a4' -> + alloca $ \a5' -> + cOISImCreateInputObject'_ a1' a2' a3' a4' a5' >>= \res -> + peek a5'>>= \a5'' -> + return (a5'') +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImDestroyInputObject :: HG3DClass -> HG3DClass -> IO () +cOISImDestroyInputObject a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISImDestroyInputObject'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImAddFactoryCreator :: HG3DClass -> HG3DClass -> IO () +cOISImAddFactoryCreator a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISImAddFactoryCreator'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; +cOISImRemoveFactoryCreator :: HG3DClass -> HG3DClass -> IO () +cOISImRemoveFactoryCreator a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISImRemoveFactoryCreator'_ a1' a2' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_getVersionName_c" + cOISImGetVersionName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_inputSystemName_c" + cOISImInputSystemName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_getNumberOfDevices_c" + cOISImGetNumberOfDevices'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_createInputObject_c" + cOISImCreateInputObject'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_destroyInputObject_c" + cOISImDestroyInputObject'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_addFactoryCreator_c" + cOISImAddFactoryCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassInputManager.chs.h cOISIm_removeFactoryCreator_c" + cOISImRemoveFactoryCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassInterface.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassInterface.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassInterface.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassInterface where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassInterface.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassInterface.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassInterface.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassJoyStick.hs view
@@ -0,0 +1,126 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassJoyStick.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassJoyStick where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +import HGamer3D.Bindings.OIS.EnumComponentType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} + + +cOISJsGetNumberOfComponents :: HG3DClass -> EnumComponentType -> IO (Int) +cOISJsGetNumberOfComponents a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISJsGetNumberOfComponents'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +; +cOISJsSetVector3Sensitivity :: HG3DClass -> Float -> IO () +cOISJsSetVector3Sensitivity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cOISJsSetVector3Sensitivity'_ a1' a2' >>= \res -> + return () +{-# LINE 68 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +; +cOISJsGetVector3Sensitivity :: HG3DClass -> IO (Float) +cOISJsGetVector3Sensitivity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISJsGetVector3Sensitivity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +; +cOISJsSetEventCallback :: HG3DClass -> HG3DClass -> IO () +cOISJsSetEventCallback a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISJsSetEventCallback'_ a1' a2' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +; +cOISJsGetEventCallback :: HG3DClass -> IO (HG3DClass) +cOISJsGetEventCallback a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISJsGetEventCallback'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs.h cOISJs_getNumberOfComponents_c" + cOISJsGetNumberOfComponents'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs.h cOISJs_setVector3Sensitivity_c" + cOISJsSetVector3Sensitivity'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs.h cOISJs_getVector3Sensitivity_c" + cOISJsGetVector3Sensitivity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs.h cOISJs_setEventCallback_c" + cOISJsSetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStick.chs.h cOISJs_getEventCallback_c" + cOISJsGetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassJoyStickEvent.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassJoyStickEvent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassJoyStickEvent.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassJoyStickEvent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassJoyStickEvent.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassJoyStickEvent.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassJoyStickEvent.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassJoyStickListener.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassJoyStickListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassJoyStickListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassJoyStickListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassJoyStickListener.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassJoyStickListener.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassJoyStickListener.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassJoyStickState.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassJoyStickState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassJoyStickState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs" #-} + + +cOISJssClear :: HG3DClass -> IO () +cOISJssClear a1 = + withHG3DClass a1 $ \a1' -> + cOISJssClear'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassJoyStickState.chs.h cOISJss_clear_c" + cOISJssClear'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassKeyEvent.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassKeyEvent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassKeyEvent.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassKeyEvent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassKeyEvent.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassKeyEvent.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassKeyEvent.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassKeyListener.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassKeyListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassKeyListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassKeyListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassKeyListener.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassKeyListener.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassKeyListener.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassKeyboard.hs view
@@ -0,0 +1,156 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassKeyboard.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassKeyboard where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +import HGamer3D.Bindings.OIS.EnumKeyCode +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +import HGamer3D.Bindings.OIS.EnumTextTranslationMode +{-# LINE 58 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +import HGamer3D.Bindings.OIS.EnumModifier +{-# LINE 59 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} + + +cOISKIsKeyDown :: HG3DClass -> EnumKeyCode -> IO (Bool) +cOISKIsKeyDown a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISKIsKeyDown'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKSetEventCallback :: HG3DClass -> HG3DClass -> IO () +cOISKSetEventCallback a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISKSetEventCallback'_ a1' a2' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKGetEventCallback :: HG3DClass -> IO (HG3DClass) +cOISKGetEventCallback a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISKGetEventCallback'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 74 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKSetTextTranslation :: HG3DClass -> EnumTextTranslationMode -> IO () +cOISKSetTextTranslation a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + cOISKSetTextTranslation'_ a1' a2' >>= \res -> + return () +{-# LINE 78 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKGetTextTranslation :: HG3DClass -> IO (EnumTextTranslationMode) +cOISKGetTextTranslation a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISKGetTextTranslation'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 82 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKGetAsString :: HG3DClass -> EnumKeyCode -> IO (String) +cOISKGetAsString a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloc64k $ \a3' -> + cOISKGetAsString'_ a1' a2' a3' >>= \res -> + peekCString a3'>>= \a3'' -> + return (a3'') +{-# LINE 87 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; +cOISKIsModifierDown :: HG3DClass -> EnumModifier -> IO (Bool) +cOISKIsModifierDown a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + alloca $ \a3' -> + cOISKIsModifierDown'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 92 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_isKeyDown_c" + cOISKIsKeyDown'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_setEventCallback_c" + cOISKSetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_getEventCallback_c" + cOISKGetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_setTextTranslation_c" + cOISKSetTextTranslation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_getTextTranslation_c" + cOISKGetTextTranslation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_getAsString_c" + cOISKGetAsString'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_isModifierDown_c" + cOISKIsModifierDown'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ()))))
+ HGamer3D/Bindings/OIS/ClassMouse.hs view
@@ -0,0 +1,88 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMouse.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassMouse where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-} + + +cOISMSetEventCallback :: HG3DClass -> HG3DClass -> IO () +cOISMSetEventCallback a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cOISMSetEventCallback'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-} +; +cOISMGetEventCallback :: HG3DClass -> IO (HG3DClass) +cOISMGetEventCallback a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISMGetEventCallback'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassMouse.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassMouse.chs.h cOISM_setEventCallback_c" + cOISMSetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassMouse.chs.h cOISM_getEventCallback_c" + cOISMGetEventCallback'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassMouseEvent.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassMouseEvent.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMouseEvent.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassMouseEvent where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassMouseEvent.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassMouseEvent.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassMouseEvent.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassMouseListener.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassMouseListener.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMouseListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassMouseListener where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassMouseListener.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassMouseListener.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassMouseListener.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassMouseState.hs view
@@ -0,0 +1,75 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassMouseState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassMouseState where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs" #-} + + +cOISMsClear :: HG3DClass -> IO () +cOISMsClear a1 = + withHG3DClass a1 $ \a1' -> + cOISMsClear'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassMouseState.chs.h cOISMs_clear_c" + cOISMsClear'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassObject.hs view
@@ -0,0 +1,148 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassObject.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISObject.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassObject where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +import HGamer3D.Bindings.OIS.EnumType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} + + +cOISOType :: HG3DClass -> IO (EnumType) +cOISOType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISOType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOVendor :: HG3DClass -> IO (String) +cOISOVendor a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cOISOVendor'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOBuffered :: HG3DClass -> IO (Bool) +cOISOBuffered a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISOBuffered'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOGetCreator :: HG3DClass -> IO (HG3DClass) +cOISOGetCreator a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISOGetCreator'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOSetBuffered :: HG3DClass -> Bool -> IO () +cOISOSetBuffered a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cOISOSetBuffered'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOCapture :: HG3DClass -> IO () +cOISOCapture a1 = + withHG3DClass a1 $ \a1' -> + cOISOCapture'_ a1' >>= \res -> + return () +{-# LINE 82 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; +cOISOGetID :: HG3DClass -> IO (Int) +cOISOGetID a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cOISOGetID'_ a1' a2' >>= \res -> + peekIntConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 86 "HGamer3D\\Bindings\\OIS\\ClassObject.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_type_c" + cOISOType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_vendor_c" + cOISOVendor'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_buffered_c" + cOISOBuffered'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_getCreator_c" + cOISOGetCreator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_setBuffered_c" + cOISOSetBuffered'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_capture_c" + cOISOCapture'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassObject.chs.h cOISO_getID_c" + cOISOGetID'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassPeriodicEffect.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassPeriodicEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPeriodicEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassPeriodicEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassPeriodicEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassPeriodicEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassPeriodicEffect.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassPov.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassPov.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPov.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassPov where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassPov.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassPov.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassPov.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassPtr.hs view
@@ -0,0 +1,130 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassPtr.chs +-- + +module HGamer3D.Bindings.OIS.ClassPtr where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + +{- class ClassJoyStickListener -} +type ClassJoyStickListener = Ptr (()) +{-# LINE 36 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassVector3 -} +type ClassVector3 = Ptr (()) +{-# LINE 38 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassKeyboard -} +type ClassKeyboard = Ptr (()) +{-# LINE 40 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassMouseListener -} +type ClassMouseListener = Ptr (()) +{-# LINE 42 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassMouse -} +type ClassMouse = Ptr (()) +{-# LINE 44 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassButton -} +type ClassButton = Ptr (()) +{-# LINE 46 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassJoyStickState -} +type ClassJoyStickState = Ptr (()) +{-# LINE 48 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassConditionalEffect -} +type ClassConditionalEffect = Ptr (()) +{-# LINE 50 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassMouseEvent -} +type ClassMouseEvent = Ptr (()) +{-# LINE 52 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassAxis -} +type ClassAxis = Ptr (()) +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassPov -} +type ClassPov = Ptr (()) +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassObject -} +type ClassObject = Ptr (()) +{-# LINE 58 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassComponent -} +type ClassComponent = Ptr (()) +{-# LINE 60 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassJoyStick -} +type ClassJoyStick = Ptr (()) +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassKeyListener -} +type ClassKeyListener = Ptr (()) +{-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassInputManager -} +type ClassInputManager = Ptr (()) +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassPeriodicEffect -} +type ClassPeriodicEffect = Ptr (()) +{-# LINE 68 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassSlider -} +type ClassSlider = Ptr (()) +{-# LINE 70 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassFactoryCreator -} +type ClassFactoryCreator = Ptr (()) +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassEventArg -} +type ClassEventArg = Ptr (()) +{-# LINE 74 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassConstantEffect -} +type ClassConstantEffect = Ptr (()) +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassForceEffect -} +type ClassForceEffect = Ptr (()) +{-# LINE 78 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassEnvelope -} +type ClassEnvelope = Ptr (()) +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassForceFeedback -} +type ClassForceFeedback = Ptr (()) +{-# LINE 82 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassEffect -} +type ClassEffect = Ptr (()) +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassJoyStickEvent -} +type ClassJoyStickEvent = Ptr (()) +{-# LINE 86 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassMouseState -} +type ClassMouseState = Ptr (()) +{-# LINE 88 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassRampEffect -} +type ClassRampEffect = Ptr (()) +{-# LINE 90 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassInterface -} +type ClassInterface = Ptr (()) +{-# LINE 92 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassKeyEvent -} +type ClassKeyEvent = Ptr (()) +{-# LINE 94 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassException -} +type ClassException = Ptr (()) +{-# LINE 96 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-}
+ HGamer3D/Bindings/OIS/ClassRampEffect.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassRampEffect.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassRampEffect.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassRampEffect where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassRampEffect.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassRampEffect.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassRampEffect.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassSlider.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassSlider.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassSlider.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassSlider where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassSlider.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassSlider.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassSlider.chs" #-} + +
+ HGamer3D/Bindings/OIS/ClassVector3.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\ClassVector3.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- ClassVector3.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.ClassVector3 where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Data.Vector2 +import HGamer3D.Data.Vector3 +import HGamer3D.Data.Vector4 +import HGamer3D.Data.Quaternion +import HGamer3D.Data.ColourValue +import HGamer3D.Data.Radian +import HGamer3D.Data.Degree +import HGamer3D.Data.Angle +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassVector3.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassVector3.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassVector3.chs" #-} + +
+ HGamer3D/Bindings/OIS/EnumAddOnFactories.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumAddOnFactories.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumAddOnFactories.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumAddOnFactories where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h line:153 -} +data EnumAddOnFactories = AddonAll + | AddonLirc + | AddonWiimote + deriving (Eq) +instance Enum EnumAddOnFactories where + fromEnum AddonAll = 0 + fromEnum AddonLirc = 1 + fromEnum AddonWiimote = 2 + + toEnum 0 = AddonAll + toEnum 1 = AddonLirc + toEnum 2 = AddonWiimote + toEnum unmatched = error ("EnumAddOnFactories.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumComponentType.hs view
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumComponentType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumComponentType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumComponentType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h line:145 -} +data EnumComponentType = OisUnknown + | OisButton + | OisAxis + | OisSlider + | OisPov + | OisVector3 + deriving (Eq) +instance Enum EnumComponentType where + fromEnum OisUnknown = 0 + fromEnum OisButton = 1 + fromEnum OisAxis = 2 + fromEnum OisSlider = 3 + fromEnum OisPov = 4 + fromEnum OisVector3 = 5 + + toEnum 0 = OisUnknown + toEnum 1 = OisButton + toEnum 2 = OisAxis + toEnum 3 = OisSlider + toEnum 4 = OisPov + toEnum 5 = OisVector3 + toEnum unmatched = error ("EnumComponentType.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumEDirection.hs view
@@ -0,0 +1,61 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumEDirection.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumEDirection.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumEDirection where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:85 -} +data EnumEDirection = Northwest + | North + | Northeast + | East + | Southeast + | South + | Southwest + | West + deriving (Enum,Eq)
+ HGamer3D/Bindings/OIS/EnumEForce.hs view
@@ -0,0 +1,74 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumEForce.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumEForce.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumEForce where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:55 -} +data EnumEForce = Unknownforce + | Constantforce + | Rampforce + | Periodicforce + | Conditionalforce + | Customforce + deriving (Eq) +instance Enum EnumEForce where + fromEnum Unknownforce = 0 + fromEnum Constantforce = 1 + fromEnum Rampforce = 2 + fromEnum Periodicforce = 3 + fromEnum Conditionalforce = 4 + fromEnum Customforce = 5 + + toEnum 0 = Unknownforce + toEnum 1 = Constantforce + toEnum 2 = Rampforce + toEnum 3 = Periodicforce + toEnum 4 = Conditionalforce + toEnum 5 = Customforce + toEnum unmatched = error ("EnumEForce.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumEType.hs view
@@ -0,0 +1,95 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumEType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumEType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumEType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:66 -} +data EnumEType = Unknown + | Constant + | Ramp + | Square + | Triangle + | Sine + | Sawtoothup + | Sawtoothdown + | Friction + | Damper + | Inertia + | Spring + | Custom + deriving (Eq) +instance Enum EnumEType where + fromEnum Unknown = 0 + fromEnum Constant = 1 + fromEnum Ramp = 2 + fromEnum Square = 3 + fromEnum Triangle = 4 + fromEnum Sine = 5 + fromEnum Sawtoothup = 6 + fromEnum Sawtoothdown = 7 + fromEnum Friction = 8 + fromEnum Damper = 9 + fromEnum Inertia = 10 + fromEnum Spring = 11 + fromEnum Custom = 12 + + toEnum 0 = Unknown + toEnum 1 = Constant + toEnum 2 = Ramp + toEnum 3 = Square + toEnum 4 = Triangle + toEnum 5 = Sine + toEnum 6 = Sawtoothup + toEnum 7 = Sawtoothdown + toEnum 8 = Friction + toEnum 9 = Damper + toEnum 10 = Inertia + toEnum 11 = Spring + toEnum 12 = Custom + toEnum unmatched = error ("EnumEType.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumIType.hs view
@@ -0,0 +1,55 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumIType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumIType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumIType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h line:40 -} +data EnumIType = Forcefeedback + | Reserved + deriving (Enum,Eq)
+ HGamer3D/Bindings/OIS/EnumKeyCode.hs view
@@ -0,0 +1,491 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumKeyCode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumKeyCode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumKeyCode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:31 -} +data EnumKeyCode = KcUnassigned + | KcEscape + | Kc1 + | Kc2 + | Kc3 + | Kc4 + | Kc5 + | Kc6 + | Kc7 + | Kc8 + | Kc9 + | Kc0 + | KcMinus + | KcEquals + | KcBack + | KcTab + | KcQ + | KcW + | KcE + | KcR + | KcT + | KcY + | KcU + | KcI + | KcO + | KcP + | KcLbracket + | KcRbracket + | KcReturn + | KcLcontrol + | KcA + | KcS + | KcD + | KcF + | KcG + | KcH + | KcJ + | KcK + | KcL + | KcSemicolon + | KcApostrophe + | KcGrave + | KcLshift + | KcBackslash + | KcZ + | KcX + | KcC + | KcV + | KcB + | KcN + | KcM + | KcComma + | KcPeriod + | KcSlash + | KcRshift + | KcMultiply + | KcLmenu + | KcSpace + | KcCapital + | KcF1 + | KcF2 + | KcF3 + | KcF4 + | KcF5 + | KcF6 + | KcF7 + | KcF8 + | KcF9 + | KcF10 + | KcNumlock + | KcScroll + | KcNumpad7 + | KcNumpad8 + | KcNumpad9 + | KcSubtract + | KcNumpad4 + | KcNumpad5 + | KcNumpad6 + | KcAdd + | KcNumpad1 + | KcNumpad2 + | KcNumpad3 + | KcNumpad0 + | KcDecimal + | KcOem102 + | KcF11 + | KcF12 + | KcF13 + | KcF14 + | KcF15 + | KcKana + | KcAbntC1 + | KcConvert + | KcNoconvert + | KcYen + | KcAbntC2 + | KcNumpadequals + | KcPrevtrack + | KcAt + | KcColon + | KcUnderline + | KcKanji + | KcStop + | KcAx + | KcUnlabeled + | KcNexttrack + | KcNumpadenter + | KcRcontrol + | KcMute + | KcCalculator + | KcPlaypause + | KcMediastop + | KcVolumedown + | KcVolumeup + | KcWebhome + | KcNumpadcomma + | KcDivide + | KcSysrq + | KcRmenu + | KcPause + | KcHome + | KcUp + | KcPgup + | KcLeft + | KcRight + | KcEnd + | KcDown + | KcPgdown + | KcInsert + | KcDelete + | KcLwin + | KcRwin + | KcApps + | KcPower + | KcSleep + | KcWake + | KcWebsearch + | KcWebfavorites + | KcWebrefresh + | KcWebstop + | KcWebforward + | KcWebback + | KcMycomputer + | KcMail + | KcMediaselect + deriving (Eq) +instance Enum EnumKeyCode where + fromEnum KcUnassigned = 0 + fromEnum KcEscape = 1 + fromEnum Kc1 = 2 + fromEnum Kc2 = 3 + fromEnum Kc3 = 4 + fromEnum Kc4 = 5 + fromEnum Kc5 = 6 + fromEnum Kc6 = 7 + fromEnum Kc7 = 8 + fromEnum Kc8 = 9 + fromEnum Kc9 = 10 + fromEnum Kc0 = 11 + fromEnum KcMinus = 12 + fromEnum KcEquals = 13 + fromEnum KcBack = 14 + fromEnum KcTab = 15 + fromEnum KcQ = 16 + fromEnum KcW = 17 + fromEnum KcE = 18 + fromEnum KcR = 19 + fromEnum KcT = 20 + fromEnum KcY = 21 + fromEnum KcU = 22 + fromEnum KcI = 23 + fromEnum KcO = 24 + fromEnum KcP = 25 + fromEnum KcLbracket = 26 + fromEnum KcRbracket = 27 + fromEnum KcReturn = 28 + fromEnum KcLcontrol = 29 + fromEnum KcA = 30 + fromEnum KcS = 31 + fromEnum KcD = 32 + fromEnum KcF = 33 + fromEnum KcG = 34 + fromEnum KcH = 35 + fromEnum KcJ = 36 + fromEnum KcK = 37 + fromEnum KcL = 38 + fromEnum KcSemicolon = 39 + fromEnum KcApostrophe = 40 + fromEnum KcGrave = 41 + fromEnum KcLshift = 42 + fromEnum KcBackslash = 43 + fromEnum KcZ = 44 + fromEnum KcX = 45 + fromEnum KcC = 46 + fromEnum KcV = 47 + fromEnum KcB = 48 + fromEnum KcN = 49 + fromEnum KcM = 50 + fromEnum KcComma = 51 + fromEnum KcPeriod = 52 + fromEnum KcSlash = 53 + fromEnum KcRshift = 54 + fromEnum KcMultiply = 55 + fromEnum KcLmenu = 56 + fromEnum KcSpace = 57 + fromEnum KcCapital = 58 + fromEnum KcF1 = 59 + fromEnum KcF2 = 60 + fromEnum KcF3 = 61 + fromEnum KcF4 = 62 + fromEnum KcF5 = 63 + fromEnum KcF6 = 64 + fromEnum KcF7 = 65 + fromEnum KcF8 = 66 + fromEnum KcF9 = 67 + fromEnum KcF10 = 68 + fromEnum KcNumlock = 69 + fromEnum KcScroll = 70 + fromEnum KcNumpad7 = 71 + fromEnum KcNumpad8 = 72 + fromEnum KcNumpad9 = 73 + fromEnum KcSubtract = 74 + fromEnum KcNumpad4 = 75 + fromEnum KcNumpad5 = 76 + fromEnum KcNumpad6 = 77 + fromEnum KcAdd = 78 + fromEnum KcNumpad1 = 79 + fromEnum KcNumpad2 = 80 + fromEnum KcNumpad3 = 81 + fromEnum KcNumpad0 = 82 + fromEnum KcDecimal = 83 + fromEnum KcOem102 = 86 + fromEnum KcF11 = 87 + fromEnum KcF12 = 88 + fromEnum KcF13 = 100 + fromEnum KcF14 = 101 + fromEnum KcF15 = 102 + fromEnum KcKana = 112 + fromEnum KcAbntC1 = 115 + fromEnum KcConvert = 121 + fromEnum KcNoconvert = 123 + fromEnum KcYen = 125 + fromEnum KcAbntC2 = 126 + fromEnum KcNumpadequals = 141 + fromEnum KcPrevtrack = 144 + fromEnum KcAt = 145 + fromEnum KcColon = 146 + fromEnum KcUnderline = 147 + fromEnum KcKanji = 148 + fromEnum KcStop = 149 + fromEnum KcAx = 150 + fromEnum KcUnlabeled = 151 + fromEnum KcNexttrack = 153 + fromEnum KcNumpadenter = 156 + fromEnum KcRcontrol = 157 + fromEnum KcMute = 160 + fromEnum KcCalculator = 161 + fromEnum KcPlaypause = 162 + fromEnum KcMediastop = 164 + fromEnum KcVolumedown = 174 + fromEnum KcVolumeup = 176 + fromEnum KcWebhome = 178 + fromEnum KcNumpadcomma = 179 + fromEnum KcDivide = 181 + fromEnum KcSysrq = 183 + fromEnum KcRmenu = 184 + fromEnum KcPause = 197 + fromEnum KcHome = 199 + fromEnum KcUp = 200 + fromEnum KcPgup = 201 + fromEnum KcLeft = 203 + fromEnum KcRight = 205 + fromEnum KcEnd = 207 + fromEnum KcDown = 208 + fromEnum KcPgdown = 209 + fromEnum KcInsert = 210 + fromEnum KcDelete = 211 + fromEnum KcLwin = 219 + fromEnum KcRwin = 220 + fromEnum KcApps = 221 + fromEnum KcPower = 222 + fromEnum KcSleep = 223 + fromEnum KcWake = 227 + fromEnum KcWebsearch = 229 + fromEnum KcWebfavorites = 230 + fromEnum KcWebrefresh = 231 + fromEnum KcWebstop = 232 + fromEnum KcWebforward = 233 + fromEnum KcWebback = 234 + fromEnum KcMycomputer = 235 + fromEnum KcMail = 236 + fromEnum KcMediaselect = 237 + + toEnum 0 = KcUnassigned + toEnum 1 = KcEscape + toEnum 2 = Kc1 + toEnum 3 = Kc2 + toEnum 4 = Kc3 + toEnum 5 = Kc4 + toEnum 6 = Kc5 + toEnum 7 = Kc6 + toEnum 8 = Kc7 + toEnum 9 = Kc8 + toEnum 10 = Kc9 + toEnum 11 = Kc0 + toEnum 12 = KcMinus + toEnum 13 = KcEquals + toEnum 14 = KcBack + toEnum 15 = KcTab + toEnum 16 = KcQ + toEnum 17 = KcW + toEnum 18 = KcE + toEnum 19 = KcR + toEnum 20 = KcT + toEnum 21 = KcY + toEnum 22 = KcU + toEnum 23 = KcI + toEnum 24 = KcO + toEnum 25 = KcP + toEnum 26 = KcLbracket + toEnum 27 = KcRbracket + toEnum 28 = KcReturn + toEnum 29 = KcLcontrol + toEnum 30 = KcA + toEnum 31 = KcS + toEnum 32 = KcD + toEnum 33 = KcF + toEnum 34 = KcG + toEnum 35 = KcH + toEnum 36 = KcJ + toEnum 37 = KcK + toEnum 38 = KcL + toEnum 39 = KcSemicolon + toEnum 40 = KcApostrophe + toEnum 41 = KcGrave + toEnum 42 = KcLshift + toEnum 43 = KcBackslash + toEnum 44 = KcZ + toEnum 45 = KcX + toEnum 46 = KcC + toEnum 47 = KcV + toEnum 48 = KcB + toEnum 49 = KcN + toEnum 50 = KcM + toEnum 51 = KcComma + toEnum 52 = KcPeriod + toEnum 53 = KcSlash + toEnum 54 = KcRshift + toEnum 55 = KcMultiply + toEnum 56 = KcLmenu + toEnum 57 = KcSpace + toEnum 58 = KcCapital + toEnum 59 = KcF1 + toEnum 60 = KcF2 + toEnum 61 = KcF3 + toEnum 62 = KcF4 + toEnum 63 = KcF5 + toEnum 64 = KcF6 + toEnum 65 = KcF7 + toEnum 66 = KcF8 + toEnum 67 = KcF9 + toEnum 68 = KcF10 + toEnum 69 = KcNumlock + toEnum 70 = KcScroll + toEnum 71 = KcNumpad7 + toEnum 72 = KcNumpad8 + toEnum 73 = KcNumpad9 + toEnum 74 = KcSubtract + toEnum 75 = KcNumpad4 + toEnum 76 = KcNumpad5 + toEnum 77 = KcNumpad6 + toEnum 78 = KcAdd + toEnum 79 = KcNumpad1 + toEnum 80 = KcNumpad2 + toEnum 81 = KcNumpad3 + toEnum 82 = KcNumpad0 + toEnum 83 = KcDecimal + toEnum 86 = KcOem102 + toEnum 87 = KcF11 + toEnum 88 = KcF12 + toEnum 100 = KcF13 + toEnum 101 = KcF14 + toEnum 102 = KcF15 + toEnum 112 = KcKana + toEnum 115 = KcAbntC1 + toEnum 121 = KcConvert + toEnum 123 = KcNoconvert + toEnum 125 = KcYen + toEnum 126 = KcAbntC2 + toEnum 141 = KcNumpadequals + toEnum 144 = KcPrevtrack + toEnum 145 = KcAt + toEnum 146 = KcColon + toEnum 147 = KcUnderline + toEnum 148 = KcKanji + toEnum 149 = KcStop + toEnum 150 = KcAx + toEnum 151 = KcUnlabeled + toEnum 153 = KcNexttrack + toEnum 156 = KcNumpadenter + toEnum 157 = KcRcontrol + toEnum 160 = KcMute + toEnum 161 = KcCalculator + toEnum 162 = KcPlaypause + toEnum 164 = KcMediastop + toEnum 174 = KcVolumedown + toEnum 176 = KcVolumeup + toEnum 178 = KcWebhome + toEnum 179 = KcNumpadcomma + toEnum 181 = KcDivide + toEnum 183 = KcSysrq + toEnum 184 = KcRmenu + toEnum 197 = KcPause + toEnum 199 = KcHome + toEnum 200 = KcUp + toEnum 201 = KcPgup + toEnum 203 = KcLeft + toEnum 205 = KcRight + toEnum 207 = KcEnd + toEnum 208 = KcDown + toEnum 209 = KcPgdown + toEnum 210 = KcInsert + toEnum 211 = KcDelete + toEnum 219 = KcLwin + toEnum 220 = KcRwin + toEnum 221 = KcApps + toEnum 222 = KcPower + toEnum 223 = KcSleep + toEnum 227 = KcWake + toEnum 229 = KcWebsearch + toEnum 230 = KcWebfavorites + toEnum 231 = KcWebrefresh + toEnum 232 = KcWebstop + toEnum 233 = KcWebforward + toEnum 234 = KcWebback + toEnum 235 = KcMycomputer + toEnum 236 = KcMail + toEnum 237 = KcMediaselect + toEnum unmatched = error ("EnumKeyCode.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumModifier.hs view
@@ -0,0 +1,65 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumModifier.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumModifier.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumModifier where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:277 -} +data EnumModifier = Shift + | Ctrl + | Alt + deriving (Eq) +instance Enum EnumModifier where + fromEnum Shift = 1 + fromEnum Ctrl = 16 + fromEnum Alt = 256 + + toEnum 1 = Shift + toEnum 16 = Ctrl + toEnum 256 = Alt + toEnum unmatched = error ("EnumModifier.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumMouseButtonID.hs view
@@ -0,0 +1,80 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumMouseButtonID.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumMouseButtonID.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumMouseButtonID where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h line:31 -} +data EnumMouseButtonID = MbLeft + | MbRight + | MbMiddle + | MbButton3 + | MbButton4 + | MbButton5 + | MbButton6 + | MbButton7 + deriving (Eq) +instance Enum EnumMouseButtonID where + fromEnum MbLeft = 0 + fromEnum MbRight = 1 + fromEnum MbMiddle = 2 + fromEnum MbButton3 = 3 + fromEnum MbButton4 = 4 + fromEnum MbButton5 = 5 + fromEnum MbButton6 = 6 + fromEnum MbButton7 = 7 + + toEnum 0 = MbLeft + toEnum 1 = MbRight + toEnum 2 = MbMiddle + toEnum 3 = MbButton3 + toEnum 4 = MbButton4 + toEnum 5 = MbButton5 + toEnum 6 = MbButton6 + toEnum 7 = MbButton7 + toEnum unmatched = error ("EnumMouseButtonID.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/EnumTextTranslationMode.hs view
@@ -0,0 +1,56 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumTextTranslationMode.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumTextTranslationMode.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumTextTranslationMode where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:240 -} +data EnumTextTranslationMode = Off + | Unicode + | Ascii + deriving (Enum,Eq)
+ HGamer3D/Bindings/OIS/EnumType.hs view
@@ -0,0 +1,71 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\EnumType.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- EnumType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.EnumType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h line:130 -} +data EnumType = Oisunknown + | Oiskeyboard + | Oismouse + | Oisjoystick + | Oistablet + deriving (Eq) +instance Enum EnumType where + fromEnum Oisunknown = 0 + fromEnum Oiskeyboard = 1 + fromEnum Oismouse = 2 + fromEnum Oisjoystick = 3 + fromEnum Oistablet = 4 + + toEnum 0 = Oisunknown + toEnum 1 = Oiskeyboard + toEnum 2 = Oismouse + toEnum 3 = Oisjoystick + toEnum 4 = Oistablet + toEnum unmatched = error ("EnumType.toEnum: Cannot match " ++ show unmatched)
+ HGamer3D/Bindings/OIS/TypeHG3DClass.hs view
@@ -0,0 +1,59 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\TypeHG3DClass.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- TypeHG3DClass.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "<parsedfile>" +-- +-- each stub combines the following files: +-- a C++ implementation file, transforming cpp calls into C-functions +-- a C-header file, making this C-functions available for the C2HS parser +-- a chs file, give instructions to the C2HS parser. +-- +-- + +module HGamer3D.Bindings.OIS.TypeHG3DClass where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + +import Data.Bits +import HGamer3D.Data.HG3DClass + +type HG3DClassPtr = Ptr (HG3DClass) +{-# LINE 51 "HGamer3D\\Bindings\\OIS\\TypeHG3DClass.chs" #-} + + +withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b +withHG3DClass = with
+ HGamer3D/Bindings/OIS/Utils.hs view
@@ -0,0 +1,100 @@+-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) +-- Edit the ORIGNAL .chs file instead! + + +{-# LINE 1 "HGamer3D\\Bindings\\OIS\\Utils.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE TypeSynonymInstances #-} + +-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +module HGamer3D.Bindings.OIS.Utils where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + +import HGamer3D.Data.HG3DClass +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 31 "HGamer3D\\Bindings\\OIS\\Utils.chs" #-} +import HGamer3D.Bindings.OIS.TypeHG3DClass +{-# LINE 32 "HGamer3D\\Bindings\\OIS\\Utils.chs" #-} + + + +-- now here come different pieces of utilities +-- + +-- String Conversion functions +-- + +withCUString b f = withCWString b (f . castPtr) +peekCUString = peekCWString . castPtr +alloc64k = allocaBytes (1024 * 64) + +-- c2hs replacements of utility functions, to get rid of annoying c2hs +-- deprecated messages + +-- Passing Enums + +cIntFromEnum :: Enum a => a -> CInt +cIntFromEnum = cIntConv . fromEnum + +cIntToEnum :: Enum a => CInt -> a +cIntToEnum = toEnum . cIntConv + + +-- Passing Booleans by reference +-- + +withBoolUtil :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b +withBoolUtil = with . fromBool + +peekBoolUtil :: (Integral a, Storable a) => Ptr a -> IO Bool +peekBoolUtil = liftM toBool . peek + + +-- Passing enums by reference +-- + +withEnumUtil :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c +withEnumUtil = with . cFromEnum + +peekEnumUtil :: (Enum a, Integral b, Storable b) => Ptr b -> IO a +peekEnumUtil = liftM cToEnum . peek + + + +fUInitializeOis :: HG3DClass -> IO (HG3DClass, HG3DClass, HG3DClass) +fUInitializeOis a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + alloca $ \a3' -> + alloca $ \a4' -> + fUInitializeOis'_ a1' a2' a3' a4' >>= \res -> + peek a2'>>= \a2'' -> + peek a3'>>= \a3'' -> + peek a4'>>= \a4'' -> + return (a2'', a3'', a4'') +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\Utils.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\Utils.chs.h fU_initializeOIS_c" + fUInitializeOis'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))))
+ LICENSE view
@@ -0,0 +1,13 @@+Copyright 2012 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License.
+ Setup.hs view
@@ -0,0 +1,22 @@+-- This source file is part of HGamer3D +-- (A project to enable 3D game development in Haskell) +-- For the latest info, see http://www.althainz.de/HGamer3D.html +-- +-- Copyright 2011 Dr. Peter Althainz +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +-- Setup.hs + +import Distribution.Simple +main = defaultMain
+ include/ClassAxis.h view
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassAxis.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void clear(); +void cOISA_clear_c(struct hg3dclass_struct *classptr_c);
+ include/ClassButton.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassButton.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassComponent.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassComponent.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassConditionalEffect.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassConditionalEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassConstantEffect.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassConstantEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassEffect.h view
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: ForceEffect* getForceEffect(); +void cOISEf_getForceEffect_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
+ include/ClassEnvelope.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassEnvelope.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassEventArg.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassEventArg.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEvents.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassException.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassException.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISException.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassFactoryCreator.h view
@@ -0,0 +1,49 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassFactoryCreator.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISFactoryCreator.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumType.h" + + +// original function: int totalDevices(Type iType); +void cOISFc_totalDevices_c(struct hg3dclass_struct *classptr_c, enum EnumType iType_c, int * result_c); +// original function: int freeDevices(Type iType); +void cOISFc_freeDevices_c(struct hg3dclass_struct *classptr_c, enum EnumType iType_c, int * result_c); +// original function: bool vendorExist(Type iType, const std::string & vendor); +void cOISFc_vendorExist_c(struct hg3dclass_struct *classptr_c, enum EnumType iType_c, char * vendor_c, int * result_c); +// original function: Object* createObject(InputManager* creator, Type iType, bool bufferMode, const std::string & vendor); +void cOISFc_createObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * creator_c, enum EnumType iType_c, int bufferMode_c, char * vendor_c, struct hg3dclass_struct * result_c); +// original function: void destroyObject(Object* obj); +void cOISFc_destroyObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c);
+ include/ClassForceEffect.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassForceEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassForceFeedback.h view
@@ -0,0 +1,42 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassForceFeedback.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISForceFeedback.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void setMasterGain(float level); +void cOISFf_setMasterGain_c(struct hg3dclass_struct *classptr_c, float level_c); +// original function: void setAutoCenterMode(bool auto_on); +void cOISFf_setAutoCenterMode_c(struct hg3dclass_struct *classptr_c, int auto_on_c);
+ include/ClassInputManager.h view
@@ -0,0 +1,53 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassInputManager.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumType.h" + + +// original function: const std::string & getVersionName(); +void cOISIm_getVersionName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: const std::string& inputSystemName(); +void cOISIm_inputSystemName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: int getNumberOfDevices(Type iType); +void cOISIm_getNumberOfDevices_c(struct hg3dclass_struct *classptr_c, enum EnumType iType_c, int * result_c); +// original function: Object* createInputObject(Type iType, bool bufferMode, const std::string & vendor); +void cOISIm_createInputObject_c(struct hg3dclass_struct *classptr_c, enum EnumType iType_c, int bufferMode_c, char * vendor_c, struct hg3dclass_struct * result_c); +// original function: void destroyInputObject(Object* obj); +void cOISIm_destroyInputObject_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * obj_c); +// original function: void addFactoryCreator(FactoryCreator* factory); +void cOISIm_addFactoryCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * factory_c); +// original function: void removeFactoryCreator(FactoryCreator* factory); +void cOISIm_removeFactoryCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * factory_c);
+ include/ClassInterface.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassInterface.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassJoyStick.h view
@@ -0,0 +1,49 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassJoyStick.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumComponentType.h" + + +// original function: int getNumberOfComponents(ComponentType cType); +void cOISJs_getNumberOfComponents_c(struct hg3dclass_struct *classptr_c, enum EnumComponentType cType_c, int * result_c); +// original function: void setVector3Sensitivity(float degrees); +void cOISJs_setVector3Sensitivity_c(struct hg3dclass_struct *classptr_c, float degrees_c); +// original function: float getVector3Sensitivity(); +void cOISJs_getVector3Sensitivity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setEventCallback(JoyStickListener * joyListener); +void cOISJs_setEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * joyListener_c); +// original function: JoyStickListener* getEventCallback(); +void cOISJs_getEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
+ include/ClassJoyStickEvent.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassJoyStickEvent.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassJoyStickListener.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassJoyStickListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassJoyStickState.h view
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassJoyStickState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void clear(); +void cOISJss_clear_c(struct hg3dclass_struct *classptr_c);
+ include/ClassKeyEvent.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassKeyEvent.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassKeyListener.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassKeyListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassKeyboard.h view
@@ -0,0 +1,55 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassKeyboard.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumKeyCode.h" +#include "EnumTextTranslationMode.h" +#include "EnumModifier.h" + + +// original function: bool isKeyDown(KeyCode key); +void cOISK_isKeyDown_c(struct hg3dclass_struct *classptr_c, enum EnumKeyCode key_c, int * result_c); +// original function: void setEventCallback(KeyListener * keyListener); +void cOISK_setEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * keyListener_c); +// original function: KeyListener* getEventCallback(); +void cOISK_getEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setTextTranslation(TextTranslationMode mode); +void cOISK_setTextTranslation_c(struct hg3dclass_struct *classptr_c, enum EnumTextTranslationMode mode_c); +// original function: TextTranslationMode getTextTranslation(); +void cOISK_getTextTranslation_c(struct hg3dclass_struct *classptr_c, enum EnumTextTranslationMode * result_c); +// original function: const std::string& getAsString(KeyCode kc); +void cOISK_getAsString_c(struct hg3dclass_struct *classptr_c, enum EnumKeyCode kc_c, char * result_c); +// original function: bool isModifierDown(Modifier mod); +void cOISK_isModifierDown_c(struct hg3dclass_struct *classptr_c, enum EnumModifier mod_c, int * result_c);
+ include/ClassMouse.h view
@@ -0,0 +1,42 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMouse.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void setEventCallback(MouseListener * mouseListener); +void cOISM_setEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * mouseListener_c); +// original function: MouseListener* getEventCallback(); +void cOISM_getEventCallback_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
+ include/ClassMouseEvent.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMouseEvent.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassMouseListener.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMouseListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassMouseState.h view
@@ -0,0 +1,40 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassMouseState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + + +// original function: void clear(); +void cOISMs_clear_c(struct hg3dclass_struct *classptr_c);
+ include/ClassObject.h view
@@ -0,0 +1,53 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassObject.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISObject.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" +#include "EnumType.h" + + +// original function: Type type(); +void cOISO_type_c(struct hg3dclass_struct *classptr_c, enum EnumType * result_c); +// original function: const std::string& vendor(); +void cOISO_vendor_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool buffered(); +void cOISO_buffered_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: InputManager* getCreator(); +void cOISO_getCreator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void setBuffered(bool buffered); +void cOISO_setBuffered_c(struct hg3dclass_struct *classptr_c, int buffered_c); +// original function: void capture(); +void cOISO_capture_c(struct hg3dclass_struct *classptr_c); +// original function: int getID(); +void cOISO_getID_c(struct hg3dclass_struct *classptr_c, int * result_c);
+ include/ClassPeriodicEffect.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPeriodicEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassPov.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassPov.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassPtr.h view
@@ -0,0 +1,123 @@+/* +This source file is part of HGamer3D +(A project to enable 3D game development in Haskell) +For the latest info, see http://www.althainz.de/HGamer3D.html + +Copyright 2011 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +// ClassPtr.h +// + +typedef struct hg3dclass_struct { + void *ptr; + void *fptr; +} hg3dclass_struct; + +void *getOISClassPtr(hg3dclass_struct inSt, const char* className); +typedef void ClassJoyStickListener; +hg3dclass_struct getOISClass_JoyStickListener(void *ptrIn); + +typedef void ClassVector3; +hg3dclass_struct getOISClass_Vector3(void *ptrIn); + +typedef void ClassKeyboard; +hg3dclass_struct getOISClass_Keyboard(void *ptrIn); + +typedef void ClassMouseListener; +hg3dclass_struct getOISClass_MouseListener(void *ptrIn); + +typedef void ClassMouse; +hg3dclass_struct getOISClass_Mouse(void *ptrIn); + +typedef void ClassButton; +hg3dclass_struct getOISClass_Button(void *ptrIn); + +typedef void ClassJoyStickState; +hg3dclass_struct getOISClass_JoyStickState(void *ptrIn); + +typedef void ClassConditionalEffect; +hg3dclass_struct getOISClass_ConditionalEffect(void *ptrIn); + +typedef void ClassMouseEvent; +hg3dclass_struct getOISClass_MouseEvent(void *ptrIn); + +typedef void ClassAxis; +hg3dclass_struct getOISClass_Axis(void *ptrIn); + +typedef void ClassPov; +hg3dclass_struct getOISClass_Pov(void *ptrIn); + +typedef void ClassObject; +hg3dclass_struct getOISClass_Object(void *ptrIn); + +typedef void ClassComponent; +hg3dclass_struct getOISClass_Component(void *ptrIn); + +typedef void ClassJoyStick; +hg3dclass_struct getOISClass_JoyStick(void *ptrIn); + +typedef void ClassKeyListener; +hg3dclass_struct getOISClass_KeyListener(void *ptrIn); + +typedef void ClassInputManager; +hg3dclass_struct getOISClass_InputManager(void *ptrIn); + +typedef void ClassPeriodicEffect; +hg3dclass_struct getOISClass_PeriodicEffect(void *ptrIn); + +typedef void ClassSlider; +hg3dclass_struct getOISClass_Slider(void *ptrIn); + +typedef void ClassFactoryCreator; +hg3dclass_struct getOISClass_FactoryCreator(void *ptrIn); + +typedef void ClassEventArg; +hg3dclass_struct getOISClass_EventArg(void *ptrIn); + +typedef void ClassConstantEffect; +hg3dclass_struct getOISClass_ConstantEffect(void *ptrIn); + +typedef void ClassForceEffect; +hg3dclass_struct getOISClass_ForceEffect(void *ptrIn); + +typedef void ClassEnvelope; +hg3dclass_struct getOISClass_Envelope(void *ptrIn); + +typedef void ClassForceFeedback; +hg3dclass_struct getOISClass_ForceFeedback(void *ptrIn); + +typedef void ClassEffect; +hg3dclass_struct getOISClass_Effect(void *ptrIn); + +typedef void ClassJoyStickEvent; +hg3dclass_struct getOISClass_JoyStickEvent(void *ptrIn); + +typedef void ClassMouseState; +hg3dclass_struct getOISClass_MouseState(void *ptrIn); + +typedef void ClassRampEffect; +hg3dclass_struct getOISClass_RampEffect(void *ptrIn); + +typedef void ClassInterface; +hg3dclass_struct getOISClass_Interface(void *ptrIn); + +typedef void ClassKeyEvent; +hg3dclass_struct getOISClass_KeyEvent(void *ptrIn); + +typedef void ClassException; +hg3dclass_struct getOISClass_Exception(void *ptrIn); +
+ include/ClassRampEffect.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassRampEffect.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassSlider.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassSlider.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/ClassVector3.h view
@@ -0,0 +1,38 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ClassVector3.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" +#include "ClassPtr.h" +#include "Utils.h" + +
+ include/EnumAddOnFactories.h view
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumAddOnFactories.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISInputManager.h line:153 + enum EnumAddOnFactories + { + AddOn_All = 0, //All Devices + AddOn_LIRC = 1, //PC Linux Infrared Remote Control + AddOn_WiiMote = 2 //PC WiiMote Support + };
+ include/EnumComponentType.h view
@@ -0,0 +1,47 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumComponentType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h line:145 + enum EnumComponentType + { + OIS_Unknown = 0, + OIS_Button = 1, //ie. Key, mouse button, joy button, etc + OIS_Axis = 2, //ie. A joystick or mouse axis + OIS_Slider = 3, // + OIS_POV = 4, //ie. Arrow direction keys + OIS_Vector3 = 5 //ie. WiiMote orientation + };
+ include/EnumEDirection.h view
@@ -0,0 +1,49 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumEDirection.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:85 + enum EnumEDirection + { + NorthWest, + North, + NorthEast, + East, + SouthEast, + South, + SouthWest, + West + };
+ include/EnumEForce.h view
@@ -0,0 +1,47 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumEForce.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:55 + enum EnumEForce + { + UnknownForce = 0, + ConstantForce, + RampForce, + PeriodicForce, + ConditionalForce, + CustomForce + };
+ include/EnumEType.h view
@@ -0,0 +1,55 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumEType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISEffect.h line:66 + enum EnumEType + { + //Type ----- Pairs with force: + Unknown = 0, //UnknownForce + Constant, //ConstantForce + Ramp, //RampForce + Square, //PeriodicForce + Triangle, //PeriodicForce + Sine, //PeriodicForce + SawToothUp, //PeriodicForce + SawToothDown,//PeriodicForce + Friction, //ConditionalForce + Damper, //ConditionalForce + Inertia, //ConditionalForce + Spring, //ConditionalForce + Custom //CustomForce + };
+ include/EnumIType.h view
@@ -0,0 +1,43 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumIType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISInterface.h line:40 + enum EnumIType + { + ForceFeedback, + Reserved + };
+ include/EnumKeyCode.h view
@@ -0,0 +1,186 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumKeyCode.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:31 + enum EnumKeyCode + { + KC_UNASSIGNED = 0x00, + KC_ESCAPE = 0x01, + KC_1 = 0x02, + KC_2 = 0x03, + KC_3 = 0x04, + KC_4 = 0x05, + KC_5 = 0x06, + KC_6 = 0x07, + KC_7 = 0x08, + KC_8 = 0x09, + KC_9 = 0x0A, + KC_0 = 0x0B, + KC_MINUS = 0x0C, // - on main keyboard + KC_EQUALS = 0x0D, + KC_BACK = 0x0E, // backspace + KC_TAB = 0x0F, + KC_Q = 0x10, + KC_W = 0x11, + KC_E = 0x12, + KC_R = 0x13, + KC_T = 0x14, + KC_Y = 0x15, + KC_U = 0x16, + KC_I = 0x17, + KC_O = 0x18, + KC_P = 0x19, + KC_LBRACKET = 0x1A, + KC_RBRACKET = 0x1B, + KC_RETURN = 0x1C, // Enter on main keyboard + KC_LCONTROL = 0x1D, + KC_A = 0x1E, + KC_S = 0x1F, + KC_D = 0x20, + KC_F = 0x21, + KC_G = 0x22, + KC_H = 0x23, + KC_J = 0x24, + KC_K = 0x25, + KC_L = 0x26, + KC_SEMICOLON = 0x27, + KC_APOSTROPHE = 0x28, + KC_GRAVE = 0x29, // accent + KC_LSHIFT = 0x2A, + KC_BACKSLASH = 0x2B, + KC_Z = 0x2C, + KC_X = 0x2D, + KC_C = 0x2E, + KC_V = 0x2F, + KC_B = 0x30, + KC_N = 0x31, + KC_M = 0x32, + KC_COMMA = 0x33, + KC_PERIOD = 0x34, // . on main keyboard + KC_SLASH = 0x35, // / on main keyboard + KC_RSHIFT = 0x36, + KC_MULTIPLY = 0x37, // * on numeric keypad + KC_LMENU = 0x38, // left Alt + KC_SPACE = 0x39, + KC_CAPITAL = 0x3A, + KC_F1 = 0x3B, + KC_F2 = 0x3C, + KC_F3 = 0x3D, + KC_F4 = 0x3E, + KC_F5 = 0x3F, + KC_F6 = 0x40, + KC_F7 = 0x41, + KC_F8 = 0x42, + KC_F9 = 0x43, + KC_F10 = 0x44, + KC_NUMLOCK = 0x45, + KC_SCROLL = 0x46, // Scroll Lock + KC_NUMPAD7 = 0x47, + KC_NUMPAD8 = 0x48, + KC_NUMPAD9 = 0x49, + KC_SUBTRACT = 0x4A, // - on numeric keypad + KC_NUMPAD4 = 0x4B, + KC_NUMPAD5 = 0x4C, + KC_NUMPAD6 = 0x4D, + KC_ADD = 0x4E, // + on numeric keypad + KC_NUMPAD1 = 0x4F, + KC_NUMPAD2 = 0x50, + KC_NUMPAD3 = 0x51, + KC_NUMPAD0 = 0x52, + KC_DECIMAL = 0x53, // . on numeric keypad + KC_OEM_102 = 0x56, // < > | on UK/Germany keyboards + KC_F11 = 0x57, + KC_F12 = 0x58, + KC_F13 = 0x64, // (NEC PC98) + KC_F14 = 0x65, // (NEC PC98) + KC_F15 = 0x66, // (NEC PC98) + KC_KANA = 0x70, // (Japanese keyboard) + KC_ABNT_C1 = 0x73, // / ? on Portugese (Brazilian) keyboards + KC_CONVERT = 0x79, // (Japanese keyboard) + KC_NOCONVERT = 0x7B, // (Japanese keyboard) + KC_YEN = 0x7D, // (Japanese keyboard) + KC_ABNT_C2 = 0x7E, // Numpad . on Portugese (Brazilian) keyboards + KC_NUMPADEQUALS= 0x8D, // = on numeric keypad (NEC PC98) + KC_PREVTRACK = 0x90, // Previous Track (KC_CIRCUMFLEX on Japanese keyboard) + KC_AT = 0x91, // (NEC PC98) + KC_COLON = 0x92, // (NEC PC98) + KC_UNDERLINE = 0x93, // (NEC PC98) + KC_KANJI = 0x94, // (Japanese keyboard) + KC_STOP = 0x95, // (NEC PC98) + KC_AX = 0x96, // (Japan AX) + KC_UNLABELED = 0x97, // (J3100) + KC_NEXTTRACK = 0x99, // Next Track + KC_NUMPADENTER = 0x9C, // Enter on numeric keypad + KC_RCONTROL = 0x9D, + KC_MUTE = 0xA0, // Mute + KC_CALCULATOR = 0xA1, // Calculator + KC_PLAYPAUSE = 0xA2, // Play / Pause + KC_MEDIASTOP = 0xA4, // Media Stop + KC_VOLUMEDOWN = 0xAE, // Volume - + KC_VOLUMEUP = 0xB0, // Volume + + KC_WEBHOME = 0xB2, // Web home + KC_NUMPADCOMMA = 0xB3, // , on numeric keypad (NEC PC98) + KC_DIVIDE = 0xB5, // / on numeric keypad + KC_SYSRQ = 0xB7, + KC_RMENU = 0xB8, // right Alt + KC_PAUSE = 0xC5, // Pause + KC_HOME = 0xC7, // Home on arrow keypad + KC_UP = 0xC8, // UpArrow on arrow keypad + KC_PGUP = 0xC9, // PgUp on arrow keypad + KC_LEFT = 0xCB, // LeftArrow on arrow keypad + KC_RIGHT = 0xCD, // RightArrow on arrow keypad + KC_END = 0xCF, // End on arrow keypad + KC_DOWN = 0xD0, // DownArrow on arrow keypad + KC_PGDOWN = 0xD1, // PgDn on arrow keypad + KC_INSERT = 0xD2, // Insert on arrow keypad + KC_DELETE = 0xD3, // Delete on arrow keypad + KC_LWIN = 0xDB, // Left Windows key + KC_RWIN = 0xDC, // Right Windows key + KC_APPS = 0xDD, // AppMenu key + KC_POWER = 0xDE, // System Power + KC_SLEEP = 0xDF, // System Sleep + KC_WAKE = 0xE3, // System Wake + KC_WEBSEARCH = 0xE5, // Web Search + KC_WEBFAVORITES= 0xE6, // Web Favorites + KC_WEBREFRESH = 0xE7, // Web Refresh + KC_WEBSTOP = 0xE8, // Web Stop + KC_WEBFORWARD = 0xE9, // Web Forward + KC_WEBBACK = 0xEA, // Web Back + KC_MYCOMPUTER = 0xEB, // My Computer + KC_MAIL = 0xEC, // Mail + KC_MEDIASELECT = 0xED // Media Select + };
+ include/EnumModifier.h view
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumModifier.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:277 + enum EnumModifier + { + Shift = 0x0000001, + Ctrl = 0x0000010, + Alt = 0x0000100 + };
+ include/EnumMouseButtonID.h view
@@ -0,0 +1,43 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumMouseButtonID.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h line:31 + enum EnumMouseButtonID + { + MB_Left = 0, MB_Right, MB_Middle, + MB_Button3, MB_Button4, MB_Button5, MB_Button6, MB_Button7 + };
+ include/EnumTextTranslationMode.h view
@@ -0,0 +1,44 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumTextTranslationMode.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h line:240 + enum EnumTextTranslationMode + { + Off, + Unicode, + Ascii + };
+ include/EnumType.h view
@@ -0,0 +1,46 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// EnumType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + + +// enum from ..\OgreSDK_vc10_v1-7-3\include\OIS\OISPrereqs.h line:130 + enum EnumType + { + OISUnknown = 0, + OISKeyboard = 1, + OISMouse = 2, + OISJoyStick = 3, + OISTablet = 4 + };
+ include/OISDllDefines.h view
@@ -0,0 +1,45 @@+/* +This source file is part of HGamer3D +(A project to enable 3D game development in Haskell) +For the latest info, see http://www.althainz.de/HGamer3D.html + +Copyright 2011 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// OISDllDefines.h + +#ifndef _HGamer3DOIS_DLLDEFINES_H_ +#define _HGamer3DOIS_DLLDEFINES_H_ + +/* Cmake will define HGamer3DOIS_EXPORTS on Windows when it +configures to build a shared library. If you are going to use +another build system on windows or create the visual studio +projects by hand you need to define MyLibrary_EXPORTS when +building a DLL on windows. +*/ + +// We are using the Visual Studio Compiler and building Shared libraries + +#if (defined (_WIN32)) && !(defined (__GNUC__)) + #if defined(HGamer3DOIS_EXPORTS) + #define OIS_LIB_EXPORT __declspec(dllexport) + #else + #define OIS_LIB_EXPORT __declspec(dllimport) + #endif /* HGamer3DOIS_EXPORTS */ +#else /* defined (_WIN32) */ + #define OIS_LIB_EXPORT +#endif + +#endif /* _HGamer3DOIS_DLLDEFINES_H_ */
+ include/TypeHG3DClass.h view
@@ -0,0 +1,41 @@+// This source file is part of HGamer3D +// (A project to enable 3D game development in Haskell) +// For the latest info, see http://www.althainz.de/HGamer3D.html +// +// Copyright 2011 Dr. Peter Althainz +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// TypeHG3DClass.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "<parsedfile>" +// +// each stub combines the following files: +// a C++ implementation file, transforming cpp calls into C-functions +// a C-header file, making this C-functions available for the C2HS parser +// a chs file, give instructions to the C2HS parser. +// +// + +#include "wchar.h" + + +typedef struct hg3dclass_struct { + void *ptr; + void *fptr; +} hg3dclass_struct; +
+ include/Utils.h view
@@ -0,0 +1,21 @@+/* +This source file is part of HGamer3D +(A project to enable 3D game development in Haskell) +For the latest info, see http://www.althainz.de/HGamer3D.html + +Copyright 2011 Dr. Peter Althainz + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +void fU_initializeOIS_c(struct hg3dclass_struct *win, struct hg3dclass_struct *rmgr, struct hg3dclass_struct *rkey, struct hg3dclass_struct *rmouse);