HGamer3D-OIS-Binding 0.1.0 → 0.1.3
raw patch · 131 files changed
+3963/−5448 lines, 131 filesdep ~HGamer3D-Datadep ~HGamer3D-Ogre-Binding
Dependency ranges changed: HGamer3D-Data, HGamer3D-Ogre-Binding
Files
- HGamer3D-OIS-Binding.cabal +5/−5
- HGamer3D/Bindings/OIS/ClassAction.hs +257/−0
- HGamer3D/Bindings/OIS/ClassActionSchema.hs +222/−0
- HGamer3D/Bindings/OIS/ClassAnalogAxisAction.hs +218/−0
- HGamer3D/Bindings/OIS/ClassAnalogAxisState.hs +90/−0
- HGamer3D/Bindings/OIS/ClassAnalogEmulator.hs +104/−0
- HGamer3D/Bindings/OIS/ClassAxis.hs +0/−75
- HGamer3D/Bindings/OIS/ClassBindable.hs +137/−0
- HGamer3D/Bindings/OIS/ClassBindableListener.hs +98/−0
- HGamer3D/Bindings/OIS/ClassBinding.hs +250/−0
- HGamer3D/Bindings/OIS/ClassButton.hs +0/−65
- HGamer3D/Bindings/OIS/ClassComponent.hs +0/−65
- HGamer3D/Bindings/OIS/ClassConditionalEffect.hs +0/−65
- HGamer3D/Bindings/OIS/ClassConstantEffect.hs +0/−65
- HGamer3D/Bindings/OIS/ClassDebugBindableListener.hs +87/−0
- HGamer3D/Bindings/OIS/ClassDevice.hs +136/−0
- HGamer3D/Bindings/OIS/ClassDigitalState.hs +90/−0
- HGamer3D/Bindings/OIS/ClassEffect.hs +0/−77
- HGamer3D/Bindings/OIS/ClassEnvelope.hs +0/−65
- HGamer3D/Bindings/OIS/ClassEventArg.hs +0/−65
- HGamer3D/Bindings/OIS/ClassException.hs +0/−65
- HGamer3D/Bindings/OIS/ClassFactoryCreator.hs +0/−134
- HGamer3D/Bindings/OIS/ClassForceEffect.hs +0/−65
- HGamer3D/Bindings/OIS/ClassForceFeedback.hs +0/−87
- HGamer3D/Bindings/OIS/ClassInputManager.hs +0/−152
- HGamer3D/Bindings/OIS/ClassInterface.hs +0/−65
- HGamer3D/Bindings/OIS/ClassJoyStick.hs +1/−62
- HGamer3D/Bindings/OIS/ClassJoyStickEvent.hs +0/−65
- HGamer3D/Bindings/OIS/ClassJoyStickListener.hs +0/−65
- HGamer3D/Bindings/OIS/ClassJoyStickState.hs +0/−75
- HGamer3D/Bindings/OIS/ClassKeyEvent.hs +0/−65
- HGamer3D/Bindings/OIS/ClassKeyListener.hs +0/−65
- HGamer3D/Bindings/OIS/ClassKeyboard.hs +16/−84
- HGamer3D/Bindings/OIS/ClassLinearAnalogEmulator.hs +206/−0
- HGamer3D/Bindings/OIS/ClassMouse.hs +1/−24
- HGamer3D/Bindings/OIS/ClassMouseEvent.hs +0/−65
- HGamer3D/Bindings/OIS/ClassMouseListener.hs +0/−65
- HGamer3D/Bindings/OIS/ClassMouseState.hs +0/−75
- HGamer3D/Bindings/OIS/ClassObject.hs +0/−148
- HGamer3D/Bindings/OIS/ClassPeriodicEffect.hs +0/−65
- HGamer3D/Bindings/OIS/ClassPov.hs +0/−65
- HGamer3D/Bindings/OIS/ClassPropertySet.hs +65/−0
- HGamer3D/Bindings/OIS/ClassPtr.hs +39/−72
- HGamer3D/Bindings/OIS/ClassRampEffect.hs +0/−65
- HGamer3D/Bindings/OIS/ClassSequenceAction.hs +91/−0
- HGamer3D/Bindings/OIS/ClassSlider.hs +0/−65
- HGamer3D/Bindings/OIS/ClassState.hs +141/−0
- HGamer3D/Bindings/OIS/ClassSystem.hs +372/−0
- HGamer3D/Bindings/OIS/ClassTriggerAction.hs +65/−0
- HGamer3D/Bindings/OIS/ClassVector3.hs +0/−65
- HGamer3D/Bindings/OIS/EnumActionType.hs +56/−0
- HGamer3D/Bindings/OIS/EnumAddOnFactories.hs +0/−65
- HGamer3D/Bindings/OIS/EnumBindableType.hs +55/−0
- HGamer3D/Bindings/OIS/EnumComponentType.hs +0/−74
- HGamer3D/Bindings/OIS/EnumEDirection.hs +0/−61
- HGamer3D/Bindings/OIS/EnumEForce.hs +0/−74
- HGamer3D/Bindings/OIS/EnumEType.hs +0/−95
- HGamer3D/Bindings/OIS/EnumIType.hs +0/−55
- HGamer3D/Bindings/OIS/EnumKeyCode.hs +0/−491
- HGamer3D/Bindings/OIS/EnumModifier.hs +0/−65
- HGamer3D/Bindings/OIS/EnumMouseButtonID.hs +0/−80
- HGamer3D/Bindings/OIS/EnumStateType.hs +55/−0
- HGamer3D/Bindings/OIS/EnumTextTranslationMode.hs +0/−56
- HGamer3D/Bindings/OIS/EnumType.hs +0/−71
- HGamer3D/Bindings/OIS/Utils.hs +6/−13
- LICENSE +1/−1
- include/ClassAction.h +72/−0
- include/ClassActionSchema.h +65/−0
- include/ClassAnalogAxisAction.h +65/−0
- include/ClassAnalogAxisState.h +43/−0
- include/ClassAnalogEmulator.h +44/−0
- include/ClassAxis.h +0/−40
- include/ClassBindable.h +51/−0
- include/ClassBindableListener.h +44/−0
- include/ClassBinding.h +68/−0
- include/ClassButton.h +0/−38
- include/ClassComponent.h +0/−38
- include/ClassConditionalEffect.h +0/−38
- include/ClassConstantEffect.h +0/−38
- include/ClassDebugBindableListener.h +42/−0
- include/ClassDevice.h +50/−0
- include/ClassDigitalState.h +43/−0
- include/ClassEffect.h +0/−40
- include/ClassEnvelope.h +0/−38
- include/ClassEventArg.h +0/−38
- include/ClassException.h +0/−38
- include/ClassFactoryCreator.h +0/−49
- include/ClassForceEffect.h +0/−38
- include/ClassForceFeedback.h +0/−42
- include/ClassInputManager.h +0/−53
- include/ClassInterface.h +0/−38
- include/ClassJoyStick.h +1/−12
- include/ClassJoyStickEvent.h +0/−38
- include/ClassJoyStickListener.h +0/−38
- include/ClassJoyStickState.h +0/−40
- include/ClassKeyEvent.h +0/−38
- include/ClassKeyListener.h +0/−38
- include/ClassKeyboard.h +5/−18
- include/ClassLinearAnalogEmulator.h +62/−0
- include/ClassMouse.h +1/−5
- include/ClassMouseEvent.h +0/−38
- include/ClassMouseListener.h +0/−38
- include/ClassMouseState.h +0/−40
- include/ClassObject.h +0/−53
- include/ClassPeriodicEffect.h +0/−38
- include/ClassPov.h +0/−38
- include/ClassPropertySet.h +38/−0
- include/ClassPtr.h +37/−70
- include/ClassRampEffect.h +0/−38
- include/ClassSequenceAction.h +43/−0
- include/ClassSlider.h +0/−38
- include/ClassState.h +52/−0
- include/ClassSystem.h +90/−0
- include/ClassTriggerAction.h +38/−0
- include/ClassVector3.h +0/−38
- include/EnumActionType.h +48/−0
- include/EnumAddOnFactories.h +0/−44
- include/EnumBindableType.h +45/−0
- include/EnumComponentType.h +0/−47
- include/EnumEDirection.h +0/−49
- include/EnumEForce.h +0/−47
- include/EnumEType.h +0/−55
- include/EnumIType.h +0/−43
- include/EnumKeyCode.h +0/−186
- include/EnumModifier.h +0/−44
- include/EnumMouseButtonID.h +0/−43
- include/EnumStateType.h +45/−0
- include/EnumTextTranslationMode.h +0/−44
- include/EnumType.h +0/−46
- include/OISDllDefines.h +6/−6
- include/Utils.h +1/−1
HGamer3D-OIS-Binding.cabal view
@@ -1,5 +1,5 @@ Name: HGamer3D-OIS-Binding -Version: 0.1.0 +Version: 0.1.3 Synopsis: Library to enable 3D game development for Haskell - OIS Bindings Description: Library, to enable 3D game development for Haskell, @@ -18,12 +18,12 @@ 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 +Extra-source-files: Setup.hs include/EnumActionType.h,include/EnumBindableType.h,include/EnumStateType.h,include/TypeHG3DClass.h,include/ClassPtr.h,include/Utils.h,include/OISDllDefines.h,include/ClassState.h,include/ClassAnalogAxisState.h,include/ClassSequenceAction.h,include/ClassDebugBindableListener.h,include/ClassKeyboard.h,include/ClassMouse.h,include/ClassDevice.h,include/ClassAction.h,include/ClassAnalogEmulator.h,include/ClassLinearAnalogEmulator.h,include/ClassTriggerAction.h,include/ClassSystem.h,include/ClassBindable.h,include/ClassAnalogAxisAction.h,include/ClassDigitalState.h,include/ClassJoyStick.h,include/ClassBindableListener.h,include/ClassPropertySet.h,include/ClassActionSchema.h,include/ClassBinding.h Library - Build-Depends: base >= 3 && < 5, HGamer3D-Data, HGamer3D-Ogre-Binding + Build-Depends: base >= 3 && < 5, HGamer3D-Data == 0.1.3, HGamer3D-Ogre-Binding == 0.1.3 - 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 + Exposed-modules: HGamer3D.Bindings.OIS.EnumActionType,HGamer3D.Bindings.OIS.EnumBindableType,HGamer3D.Bindings.OIS.EnumStateType,HGamer3D.Bindings.OIS.TypeHG3DClass,HGamer3D.Bindings.OIS.ClassPtr,HGamer3D.Bindings.OIS.Utils,HGamer3D.Bindings.OIS.ClassState,HGamer3D.Bindings.OIS.ClassAnalogAxisState,HGamer3D.Bindings.OIS.ClassSequenceAction,HGamer3D.Bindings.OIS.ClassDebugBindableListener,HGamer3D.Bindings.OIS.ClassKeyboard,HGamer3D.Bindings.OIS.ClassMouse,HGamer3D.Bindings.OIS.ClassDevice,HGamer3D.Bindings.OIS.ClassAction,HGamer3D.Bindings.OIS.ClassAnalogEmulator,HGamer3D.Bindings.OIS.ClassLinearAnalogEmulator,HGamer3D.Bindings.OIS.ClassTriggerAction,HGamer3D.Bindings.OIS.ClassSystem,HGamer3D.Bindings.OIS.ClassBindable,HGamer3D.Bindings.OIS.ClassAnalogAxisAction,HGamer3D.Bindings.OIS.ClassDigitalState,HGamer3D.Bindings.OIS.ClassJoyStick,HGamer3D.Bindings.OIS.ClassBindableListener,HGamer3D.Bindings.OIS.ClassPropertySet,HGamer3D.Bindings.OIS.ClassActionSchema,HGamer3D.Bindings.OIS.ClassBinding Other-modules: C2HS ghc-options: @@ -32,4 +32,4 @@ Include-dirs: include Build-tools: build-depends: haskell98 - extra-libraries: stdc++.dll HGamer3DOIS + extra-libraries: stdc++.dll HGamer3DOIS013
+ HGamer3D/Bindings/OIS/ClassAction.hs view
@@ -0,0 +1,257 @@+-- 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\\ClassAction.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. +-- +-- ClassAction.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAction.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.ClassAction 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\\ClassAction.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +import HGamer3D.Bindings.OIS.EnumBindableType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +import HGamer3D.Bindings.OIS.EnumActionType +{-# LINE 58 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} + + +cAGetBindableType :: HG3DClass -> IO (EnumBindableType) +cAGetBindableType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAGetBindableType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAGetBindableName :: HG3DClass -> IO (String) +cAGetBindableName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cAGetBindableName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAIsActive :: HG3DClass -> IO (Bool) +cAIsActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAIsActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAHasChanged :: HG3DClass -> IO (Bool) +cAHasChanged a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAHasChanged'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAGetFullName :: HG3DClass -> IO (String) +cAGetFullName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cAGetFullName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAGetActionType :: HG3DClass -> IO (EnumActionType) +cAGetActionType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAGetActionType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cACreateBinding :: HG3DClass -> IO (HG3DClass) +cACreateBinding a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cACreateBinding'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 88 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cADestroyBinding :: HG3DClass -> HG3DClass -> IO () +cADestroyBinding a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cADestroyBinding'_ a1' a2' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind :: HG3DClass -> HG3DClass -> IO () +cABind a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cABind'_ a1' a2' >>= \res -> + return () +{-# LINE 96 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind2 :: HG3DClass -> HG3DClass -> HG3DClass -> IO () +cABind2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + cABind2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 101 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind3 :: HG3DClass -> HG3DClass -> HG3DClass -> HG3DClass -> IO () +cABind3 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withHG3DClass a3 $ \a3' -> + withHG3DClass a4 $ \a4' -> + cABind3'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind4 :: HG3DClass -> String -> IO () +cABind4 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cABind4'_ a1' a2' >>= \res -> + return () +{-# LINE 111 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind5 :: HG3DClass -> String -> String -> IO () +cABind5 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cABind5'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 116 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cABind6 :: HG3DClass -> String -> String -> String -> IO () +cABind6 a1 a2 a3 a4 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + withCString a4 $ \a4' -> + cABind6'_ a1' a2' a3' a4' >>= \res -> + return () +{-# LINE 122 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cAProcess :: HG3DClass -> Float -> IO () +cAProcess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAProcess'_ a1' a2' >>= \res -> + return () +{-# LINE 126 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; +cADestroyItself :: HG3DClass -> IO () +cADestroyItself a1 = + withHG3DClass a1 $ \a1' -> + cADestroyItself'_ a1' >>= \res -> + return () +{-# LINE 129 "HGamer3D\\Bindings\\OIS\\ClassAction.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_getBindableType_c" + cAGetBindableType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_getBindableName_c" + cAGetBindableName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_isActive_c" + cAIsActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_hasChanged_c" + cAHasChanged'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_getFullName_c" + cAGetFullName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_getActionType_c" + cAGetActionType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_createBinding_c" + cACreateBinding'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_destroyBinding_c" + cADestroyBinding'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind_c" + cABind'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind2_c" + cABind2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind3_c" + cABind3'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind4_c" + cABind4'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind5_c" + cABind5'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_bind6_c" + cABind6'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_process_c" + cAProcess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAction.chs.h cA_destroyItself_c" + cADestroyItself'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassActionSchema.hs view
@@ -0,0 +1,222 @@+-- 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\\ClassActionSchema.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. +-- +-- ClassActionSchema.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBActionSchema.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.ClassActionSchema 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\\ClassActionSchema.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +import HGamer3D.Bindings.OIS.EnumActionType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} + + +cAsSetEnabled :: HG3DClass -> Bool -> IO () +cAsSetEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cAsSetEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsCreateAction :: HG3DClass -> EnumActionType -> String -> IO (HG3DClass) +cAsCreateAction a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + let {a2' = cIntFromEnum a2} in + withCString a3 $ \a3' -> + alloca $ \a4' -> + cAsCreateAction'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 69 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsCreateTriggerAction :: HG3DClass -> String -> IO (HG3DClass) +cAsCreateTriggerAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAsCreateTriggerAction'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 74 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsCreateAnalogAxisAction :: HG3DClass -> String -> IO (HG3DClass) +cAsCreateAnalogAxisAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAsCreateAnalogAxisAction'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsCreateSequenceAction :: HG3DClass -> String -> IO (HG3DClass) +cAsCreateSequenceAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAsCreateSequenceAction'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsDestroyAction :: HG3DClass -> String -> IO () +cAsDestroyAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cAsDestroyAction'_ a1' a2' >>= \res -> + return () +{-# LINE 88 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsDestroyAction2 :: HG3DClass -> HG3DClass -> IO () +cAsDestroyAction2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cAsDestroyAction2'_ a1' a2' >>= \res -> + return () +{-# LINE 92 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsGetAction :: HG3DClass -> String -> IO (HG3DClass) +cAsGetAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAsGetAction'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 97 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsHasAction :: HG3DClass -> String -> IO (Bool) +cAsHasAction a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cAsHasAction'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 102 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsAddListenerToAllActions :: HG3DClass -> HG3DClass -> IO () +cAsAddListenerToAllActions a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cAsAddListenerToAllActions'_ a1' a2' >>= \res -> + return () +{-# LINE 106 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsRemoveListenerFromAllActions :: HG3DClass -> HG3DClass -> IO () +cAsRemoveListenerFromAllActions a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cAsRemoveListenerFromAllActions'_ a1' a2' >>= \res -> + return () +{-# LINE 110 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsProcess :: HG3DClass -> Float -> IO () +cAsProcess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAsProcess'_ a1' a2' >>= \res -> + return () +{-# LINE 114 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; +cAsDump :: HG3DClass -> IO () +cAsDump a1 = + withHG3DClass a1 $ \a1' -> + cAsDump'_ a1' >>= \res -> + return () +{-# LINE 117 "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_setEnabled_c" + cAsSetEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_createAction_c" + cAsCreateAction'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_createTriggerAction_c" + cAsCreateTriggerAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_createAnalogAxisAction_c" + cAsCreateAnalogAxisAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_createSequenceAction_c" + cAsCreateSequenceAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_destroyAction_c" + cAsDestroyAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_destroyAction2_c" + cAsDestroyAction2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_getAction_c" + cAsGetAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_hasAction_c" + cAsHasAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_addListenerToAllActions_c" + cAsAddListenerToAllActions'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_removeListenerFromAllActions_c" + cAsRemoveListenerFromAllActions'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_process_c" + cAsProcess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassActionSchema.chs.h cAs_dump_c" + cAsDump'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassAnalogAxisAction.hs view
@@ -0,0 +1,218 @@+-- 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\\ClassAnalogAxisAction.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. +-- +-- ClassAnalogAxisAction.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAnalogAxisAction.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.ClassAnalogAxisAction 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\\ClassAnalogAxisAction.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +import HGamer3D.Bindings.OIS.EnumActionType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} + + +cAaaGetActionType :: HG3DClass -> IO (EnumActionType) +cAaaGetActionType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetActionType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaSetUseAbsoluteValues :: HG3DClass -> Bool -> IO () +cAaaSetUseAbsoluteValues a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cAaaSetUseAbsoluteValues'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetUseAbsoluteValues :: HG3DClass -> IO (Bool) +cAaaGetUseAbsoluteValues a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetUseAbsoluteValues'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetAbsoluteValue :: HG3DClass -> IO (Float) +cAaaGetAbsoluteValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetAbsoluteValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetRelativeValue :: HG3DClass -> IO (Float) +cAaaGetRelativeValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetRelativeValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaSetMinimumValue :: HG3DClass -> Float -> IO () +cAaaSetMinimumValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAaaSetMinimumValue'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetMinimumValue :: HG3DClass -> IO (Float) +cAaaGetMinimumValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetMinimumValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 87 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaSetMaximumValue :: HG3DClass -> Float -> IO () +cAaaSetMaximumValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAaaSetMaximumValue'_ a1' a2' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetMaximumValue :: HG3DClass -> IO (Float) +cAaaGetMaximumValue a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetMaximumValue'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 95 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaSetSensitivity :: HG3DClass -> Float -> IO () +cAaaSetSensitivity a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAaaSetSensitivity'_ a1' a2' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetSensitivity :: HG3DClass -> IO (Float) +cAaaGetSensitivity a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetSensitivity'_ a1' a2' >>= \res -> + peekFloatConv a2'>>= \a2'' -> + return (a2'') +{-# LINE 103 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaSetAnalogEmulator :: HG3DClass -> HG3DClass -> IO () +cAaaSetAnalogEmulator a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cAaaSetAnalogEmulator'_ a1' a2' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; +cAaaGetAnalogEmulator :: HG3DClass -> IO (HG3DClass) +cAaaGetAnalogEmulator a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAaaGetAnalogEmulator'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 111 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getActionType_c" + cAaaGetActionType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_setUseAbsoluteValues_c" + cAaaSetUseAbsoluteValues'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getUseAbsoluteValues_c" + cAaaGetUseAbsoluteValues'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getAbsoluteValue_c" + cAaaGetAbsoluteValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getRelativeValue_c" + cAaaGetRelativeValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_setMinimumValue_c" + cAaaSetMinimumValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getMinimumValue_c" + cAaaGetMinimumValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_setMaximumValue_c" + cAaaSetMaximumValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getMaximumValue_c" + cAaaGetMaximumValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_setSensitivity_c" + cAaaSetSensitivity'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getSensitivity_c" + cAaaGetSensitivity'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_setAnalogEmulator_c" + cAaaSetAnalogEmulator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisAction.chs.h cAaa_getAnalogEmulator_c" + cAaaGetAnalogEmulator'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassAnalogAxisState.hs view
@@ -0,0 +1,90 @@+-- 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\\ClassAnalogAxisState.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. +-- +-- ClassAnalogAxisState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAnalogAxisState.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.ClassAnalogAxisState 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\\ClassAnalogAxisState.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs" #-} +import HGamer3D.Bindings.OIS.EnumStateType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs" #-} + + +cAasGetStateType :: HG3DClass -> IO (EnumStateType) +cAasGetStateType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cAasGetStateType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs" #-} +; +cAasSetAbsoluteValue :: HG3DClass -> Float -> IO () +cAasSetAbsoluteValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cAasSetAbsoluteValue'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs.h cAas_getStateType_c" + cAasGetStateType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogAxisState.chs.h cAas__setAbsoluteValue_c" + cAasSetAbsoluteValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassAnalogEmulator.hs view
@@ -0,0 +1,104 @@+-- 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\\ClassAnalogEmulator.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. +-- +-- ClassAnalogEmulator.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAnalogEmulation.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.ClassAnalogEmulator 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\\ClassAnalogEmulator.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs" #-} + + +cAeGetType :: HG3DClass -> IO (String) +cAeGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cAeGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs" #-} +; +cAeCheckBinding :: HG3DClass -> HG3DClass -> IO (Bool) +cAeCheckBinding a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cAeCheckBinding'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs" #-} +; +cAeEmulateRelative :: HG3DClass -> HG3DClass -> Float -> IO (Float) +cAeEmulateRelative a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cAeEmulateRelative'_ a1' a2' a3' a4' >>= \res -> + peekFloatConv a4'>>= \a4'' -> + return (a4'') +{-# LINE 73 "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs.h cAe_getType_c" + cAeGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs.h cAe_checkBinding_c" + cAeCheckBinding'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassAnalogEmulator.chs.h cAe_emulateRelative_c" + cAeEmulateRelative'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> ((Ptr CFloat) -> (IO ())))))
− HGamer3D/Bindings/OIS/ClassAxis.hs
@@ -1,75 +0,0 @@--- 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/ClassBindable.hs view
@@ -0,0 +1,137 @@+-- 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\\ClassBindable.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. +-- +-- ClassBindable.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBBindable.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.ClassBindable 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\\ClassBindable.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +import HGamer3D.Bindings.OIS.EnumBindableType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} + + +cBeGetBindableType :: HG3DClass -> IO (EnumBindableType) +cBeGetBindableType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBeGetBindableType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; +cBeGetBindableName :: HG3DClass -> IO (String) +cBeGetBindableName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cBeGetBindableName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; +cBeIsActive :: HG3DClass -> IO (Bool) +cBeIsActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBeIsActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 71 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; +cBeHasChanged :: HG3DClass -> IO (Bool) +cBeHasChanged a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBeHasChanged'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 75 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; +cBeAddListener :: HG3DClass -> HG3DClass -> IO () +cBeAddListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBeAddListener'_ a1' a2' >>= \res -> + return () +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; +cBeRemoveListener :: HG3DClass -> HG3DClass -> IO () +cBeRemoveListener a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBeRemoveListener'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\OIS\\ClassBindable.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_getBindableType_c" + cBeGetBindableType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_getBindableName_c" + cBeGetBindableName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_isActive_c" + cBeIsActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_hasChanged_c" + cBeHasChanged'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_addListener_c" + cBeAddListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindable.chs.h cBe_removeListener_c" + cBeRemoveListener'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassBindableListener.hs view
@@ -0,0 +1,98 @@+-- 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\\ClassBindableListener.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. +-- +-- ClassBindableListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBBindable.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.ClassBindableListener 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\\ClassBindableListener.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs" #-} + + +cBlBindableActivated :: HG3DClass -> HG3DClass -> IO () +cBlBindableActivated a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBlBindableActivated'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs" #-} +; +cBlBindableDeactivated :: HG3DClass -> HG3DClass -> IO () +cBlBindableDeactivated a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBlBindableDeactivated'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs" #-} +; +cBlBindableProcessed :: HG3DClass -> HG3DClass -> IO () +cBlBindableProcessed a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBlBindableProcessed'_ a1' a2' >>= \res -> + return () +{-# LINE 70 "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs.h cBl_bindableActivated_c" + cBlBindableActivated'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs.h cBl_bindableDeactivated_c" + cBlBindableDeactivated'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBindableListener.chs.h cBl_bindableProcessed_c" + cBlBindableProcessed'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassBinding.hs view
@@ -0,0 +1,250 @@+-- 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\\ClassBinding.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. +-- +-- ClassBinding.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBBinding.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.ClassBinding 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\\ClassBinding.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} + + +cBSetActive :: HG3DClass -> Bool -> IO () +cBSetActive a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cBSetActive'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBBind :: HG3DClass -> HG3DClass -> String -> IO () +cBBind a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + withCString a3 $ \a3' -> + cBBind'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBBind2 :: HG3DClass -> String -> String -> IO () +cBBind2 a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + withCString a3 $ \a3' -> + cBBind2'_ a1' a2' a3' >>= \res -> + return () +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBUnbind :: HG3DClass -> HG3DClass -> IO () +cBUnbind a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cBUnbind'_ a1' a2' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBUnbind2 :: HG3DClass -> String -> IO () +cBUnbind2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cBUnbind2'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBIsBound :: HG3DClass -> HG3DClass -> IO (Bool) +cBIsBound a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cBIsBound'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 85 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBIsBound2 :: HG3DClass -> String -> IO (Bool) +cBIsBound2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cBIsBound2'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 90 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetBindable :: HG3DClass -> Int -> IO (HG3DClass) +cBGetBindable a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cBGetBindable'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 95 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetState :: HG3DClass -> Int -> IO (HG3DClass) +cBGetState a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cBGetState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 100 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetAction :: HG3DClass -> Int -> IO (HG3DClass) +cBGetAction a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromIntegral a2} in + alloca $ \a3' -> + cBGetAction'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 105 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetBindable2 :: HG3DClass -> String -> IO (HG3DClass) +cBGetBindable2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cBGetBindable2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 110 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetState2 :: HG3DClass -> String -> IO (HG3DClass) +cBGetState2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cBGetState2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 115 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBGetAction2 :: HG3DClass -> String -> IO (HG3DClass) +cBGetAction2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cBGetAction2'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 120 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBIsAnyBindableActive :: HG3DClass -> IO (Bool) +cBIsAnyBindableActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBIsAnyBindableActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 124 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; +cBAreAllBindablesActive :: HG3DClass -> IO (Bool) +cBAreAllBindablesActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cBAreAllBindablesActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 128 "HGamer3D\\Bindings\\OIS\\ClassBinding.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB__setActive_c" + cBSetActive'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_bind_c" + cBBind'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_bind2_c" + cBBind2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_unbind_c" + cBUnbind'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_unbind2_c" + cBUnbind2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_isBound_c" + cBIsBound'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_isBound2_c" + cBIsBound2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getBindable_c" + cBGetBindable'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getState_c" + cBGetState'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getAction_c" + cBGetAction'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getBindable2_c" + cBGetBindable2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getState2_c" + cBGetState2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_getAction2_c" + cBGetAction2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_isAnyBindableActive_c" + cBIsAnyBindableActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassBinding.chs.h cB_areAllBindablesActive_c" + cBAreAllBindablesActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
− HGamer3D/Bindings/OIS/ClassButton.hs
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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/ClassDebugBindableListener.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\\ClassDebugBindableListener.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. +-- +-- ClassDebugBindableListener.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBBindable.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.ClassDebugBindableListener 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\\ClassDebugBindableListener.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs" #-} + + +cDblBindableActivated :: HG3DClass -> HG3DClass -> IO () +cDblBindableActivated a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cDblBindableActivated'_ a1' a2' >>= \res -> + return () +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs" #-} +; +cDblBindableDeactivated :: HG3DClass -> HG3DClass -> IO () +cDblBindableDeactivated a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cDblBindableDeactivated'_ a1' a2' >>= \res -> + return () +{-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs.h cDbl_bindableActivated_c" + cDblBindableActivated'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDebugBindableListener.chs.h cDbl_bindableDeactivated_c" + cDblBindableDeactivated'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassDevice.hs view
@@ -0,0 +1,136 @@+-- 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\\ClassDevice.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. +-- +-- ClassDevice.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBDevice.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.ClassDevice 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\\ClassDevice.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} + + +cDGetName :: HG3DClass -> IO (String) +cDGetName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cDGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; +cDGetState :: HG3DClass -> String -> IO (HG3DClass) +cDGetState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cDGetState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; +cDHasState :: HG3DClass -> String -> IO (Bool) +cDHasState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cDHasState'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; +cDAddListenerToAllStates :: HG3DClass -> HG3DClass -> IO () +cDAddListenerToAllStates a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cDAddListenerToAllStates'_ a1' a2' >>= \res -> + return () +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; +cDRemoveListenerFromAllStates :: HG3DClass -> HG3DClass -> IO () +cDRemoveListenerFromAllStates a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cDRemoveListenerFromAllStates'_ a1' a2' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; +cDProcess :: HG3DClass -> Float -> IO () +cDProcess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cDProcess'_ a1' a2' >>= \res -> + return () +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\ClassDevice.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_getName_c" + cDGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_getState_c" + cDGetState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_hasState_c" + cDHasState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_addListenerToAllStates_c" + cDAddListenerToAllStates'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_removeListenerFromAllStates_c" + cDRemoveListenerFromAllStates'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDevice.chs.h cD_process_c" + cDProcess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassDigitalState.hs view
@@ -0,0 +1,90 @@+-- 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\\ClassDigitalState.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. +-- +-- ClassDigitalState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBDigitalState.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.ClassDigitalState 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\\ClassDigitalState.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs" #-} +import HGamer3D.Bindings.OIS.EnumStateType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs" #-} + + +cDsGetStateType :: HG3DClass -> IO (EnumStateType) +cDsGetStateType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cDsGetStateType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs" #-} +; +cDsSetValue :: HG3DClass -> Bool -> IO () +cDsSetValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cDsSetValue'_ a1' a2' >>= \res -> + return () +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs.h cDs_getStateType_c" + cDsGetStateType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassDigitalState.chs.h cDs__setValue_c" + cDsSetValue'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
− HGamer3D/Bindings/OIS/ClassEffect.hs
@@ -1,77 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,134 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,87 +0,0 @@--- 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
@@ -1,152 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -29,7 +29,7 @@ -- -- -- File for type, method, enum or function stubs --- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +-- in: "Module-OIS\oisb\include\OISBJoyStick.h" -- -- each stub combines the following files: -- a C++ implementation file, transforming cpp calls into C-functions @@ -61,66 +61,5 @@ {-# 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,75 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -29,7 +29,7 @@ -- -- -- File for type, method, enum or function stubs --- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +-- in: "Module-OIS\oisb\include\OISBKeyboard.h" -- -- each stub combines the following files: -- a C++ implementation file, transforming cpp calls into C-functions @@ -61,96 +61,28 @@ {-# 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 = +cKbGetName :: HG3DClass -> IO (String) +cKbGetName a1 = withHG3DClass a1 $ \a1' -> - alloca $ \a2' -> - cOISKGetEventCallback'_ a1' a2' >>= \res -> - peek a2'>>= \a2'' -> + alloc64k $ \a2' -> + cKbGetName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> return (a2'') -{-# LINE 74 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs" #-} ; -cOISKSetTextTranslation :: HG3DClass -> EnumTextTranslationMode -> IO () -cOISKSetTextTranslation a1 a2 = +cKbProcess :: HG3DClass -> Float -> IO () +cKbProcess a1 a2 = withHG3DClass a1 $ \a1' -> - let {a2' = cIntFromEnum a2} in - cOISKSetTextTranslation'_ a1' a2' >>= \res -> + let {a2' = realToFrac a2} in + cKbProcess'_ 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" #-} +{-# LINE 66 "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 cKb_getName_c" + cKbGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) -foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cOISK_isModifierDown_c" - cOISKIsModifierDown'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassKeyboard.chs.h cKb_process_c" + cKbProcess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassLinearAnalogEmulator.hs view
@@ -0,0 +1,206 @@+-- 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\\ClassLinearAnalogEmulator.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. +-- +-- ClassLinearAnalogEmulator.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAnalogEmulation.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.ClassLinearAnalogEmulator 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\\ClassLinearAnalogEmulator.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} + + +cLaeGetType :: HG3DClass -> IO (String) +cLaeGetType a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cLaeGetType'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeCheckBinding :: HG3DClass -> HG3DClass -> IO (Bool) +cLaeCheckBinding a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + alloca $ \a3' -> + cLaeCheckBinding'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeEmulateRelative :: HG3DClass -> HG3DClass -> Float -> IO (Float) +cLaeEmulateRelative a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cLaeEmulateRelative'_ a1' a2' a3' a4' >>= \res -> + peekFloatConv a4'>>= \a4'' -> + return (a4'') +{-# LINE 73 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeEmulateAbsolute :: HG3DClass -> HG3DClass -> Float -> IO (Float) +cLaeEmulateAbsolute a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + let {a3' = realToFrac a3} in + alloca $ \a4' -> + cLaeEmulateAbsolute'_ a1' a2' a3' a4' >>= \res -> + peekFloatConv a4'>>= \a4'' -> + return (a4'') +{-# LINE 79 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetDecreaseSpeed :: HG3DClass -> Float -> IO () +cLaeSetDecreaseSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetDecreaseSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 83 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetIncreaseSpeed :: HG3DClass -> Float -> IO () +cLaeSetIncreaseSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetIncreaseSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 87 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetSpeed :: HG3DClass -> Float -> IO () +cLaeSetSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 91 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetReturnEnabled :: HG3DClass -> Bool -> IO () +cLaeSetReturnEnabled a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = fromBool a2} in + cLaeSetReturnEnabled'_ a1' a2' >>= \res -> + return () +{-# LINE 95 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetReturnValue :: HG3DClass -> Float -> IO () +cLaeSetReturnValue a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetReturnValue'_ a1' a2' >>= \res -> + return () +{-# LINE 99 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetReturnDecreaseSpeed :: HG3DClass -> Float -> IO () +cLaeSetReturnDecreaseSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetReturnDecreaseSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 103 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetReturnIncreaseSpeed :: HG3DClass -> Float -> IO () +cLaeSetReturnIncreaseSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetReturnIncreaseSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 107 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; +cLaeSetReturnSpeed :: HG3DClass -> Float -> IO () +cLaeSetReturnSpeed a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cLaeSetReturnSpeed'_ a1' a2' >>= \res -> + return () +{-# LINE 111 "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_getType_c" + cLaeGetType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_checkBinding_c" + cLaeCheckBinding'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_emulateRelative_c" + cLaeEmulateRelative'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> ((Ptr CFloat) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_emulateAbsolute_c" + cLaeEmulateAbsolute'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> ((Ptr CFloat) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setDecreaseSpeed_c" + cLaeSetDecreaseSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setIncreaseSpeed_c" + cLaeSetIncreaseSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setSpeed_c" + cLaeSetSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setReturnEnabled_c" + cLaeSetReturnEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setReturnValue_c" + cLaeSetReturnValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setReturnDecreaseSpeed_c" + cLaeSetReturnDecreaseSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setReturnIncreaseSpeed_c" + cLaeSetReturnIncreaseSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassLinearAnalogEmulator.chs.h cLae_setReturnSpeed_c" + cLaeSetReturnSpeed'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
HGamer3D/Bindings/OIS/ClassMouse.hs view
@@ -29,7 +29,7 @@ -- -- -- File for type, method, enum or function stubs --- in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +-- in: "Module-OIS\oisb\include\OISBMouse.h" -- -- each stub combines the following files: -- a C++ implementation file, transforming cpp calls into C-functions @@ -63,26 +63,3 @@ {-# 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,75 +0,0 @@--- 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
@@ -1,148 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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/ClassPropertySet.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\\ClassPropertySet.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. +-- +-- ClassPropertySet.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBPropertySet.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.ClassPropertySet 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\\ClassPropertySet.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassPropertySet.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassPropertySet.chs" #-} + +
HGamer3D/Bindings/OIS/ClassPtr.hs view
@@ -35,96 +35,63 @@ import Monad (liftM, liftM2) -{- class ClassJoyStickListener -} -type ClassJoyStickListener = Ptr (()) +{- class ClassState -} +type ClassState = Ptr (()) {-# LINE 36 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassVector3 -} -type ClassVector3 = Ptr (()) +{- class ClassAnalogAxisState -} +type ClassAnalogAxisState = Ptr (()) {-# LINE 38 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassKeyboard -} -type ClassKeyboard = Ptr (()) +{- class ClassSequenceAction -} +type ClassSequenceAction = Ptr (()) {-# LINE 40 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassMouseListener -} -type ClassMouseListener = Ptr (()) +{- class ClassDebugBindableListener -} +type ClassDebugBindableListener = Ptr (()) {-# LINE 42 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} +{- class ClassKeyboard -} +type ClassKeyboard = Ptr (()) +{-# LINE 44 "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 (()) +{- class ClassDevice -} +type ClassDevice = Ptr (()) {-# LINE 48 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassConditionalEffect -} -type ClassConditionalEffect = Ptr (()) +{- class ClassAction -} +type ClassAction = Ptr (()) {-# LINE 50 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassMouseEvent -} -type ClassMouseEvent = Ptr (()) +{- class ClassAnalogEmulator -} +type ClassAnalogEmulator = Ptr (()) {-# LINE 52 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassAxis -} -type ClassAxis = Ptr (()) +{- class ClassLinearAnalogEmulator -} +type ClassLinearAnalogEmulator = Ptr (()) {-# LINE 54 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassPov -} -type ClassPov = Ptr (()) +{- class ClassTriggerAction -} +type ClassTriggerAction = Ptr (()) {-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassObject -} -type ClassObject = Ptr (()) +{- class ClassSystem -} +type ClassSystem = Ptr (()) {-# LINE 58 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassComponent -} -type ClassComponent = Ptr (()) +{- class ClassBindable -} +type ClassBindable = Ptr (()) {-# LINE 60 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassJoyStick -} -type ClassJoyStick = Ptr (()) +{- class ClassAnalogAxisAction -} +type ClassAnalogAxisAction = Ptr (()) {-# LINE 62 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassKeyListener -} -type ClassKeyListener = Ptr (()) +{- class ClassDigitalState -} +type ClassDigitalState = Ptr (()) {-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassInputManager -} -type ClassInputManager = Ptr (()) +{- class ClassJoyStick -} +type ClassJoyStick = Ptr (()) {-# LINE 66 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassPeriodicEffect -} -type ClassPeriodicEffect = Ptr (()) +{- class ClassBindableListener -} +type ClassBindableListener = Ptr (()) {-# LINE 68 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassSlider -} -type ClassSlider = Ptr (()) +{- class ClassPropertySet -} +type ClassPropertySet = Ptr (()) {-# LINE 70 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassFactoryCreator -} -type ClassFactoryCreator = Ptr (()) +{- class ClassActionSchema -} +type ClassActionSchema = Ptr (()) {-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassPtr.chs" #-} -{- class ClassEventArg -} -type ClassEventArg = Ptr (()) +{- class ClassBinding -} +type ClassBinding = 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
@@ -1,65 +0,0 @@--- 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/ClassSequenceAction.hs view
@@ -0,0 +1,91 @@+-- 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\\ClassSequenceAction.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. +-- +-- ClassSequenceAction.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBSequenceAction.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.ClassSequenceAction 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\\ClassSequenceAction.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs" #-} +import HGamer3D.Bindings.OIS.EnumActionType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs" #-} + + +cSaGetActionType :: HG3DClass -> IO (EnumActionType) +cSaGetActionType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSaGetActionType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 63 "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs" #-} +; +cSaCreateBinding :: HG3DClass -> IO (HG3DClass) +cSaCreateBinding a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSaCreateBinding'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 67 "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs.h cSa_getActionType_c" + cSaGetActionType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSequenceAction.chs.h cSa_createBinding_c" + cSaCreateBinding'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
− HGamer3D/Bindings/OIS/ClassSlider.hs
@@ -1,65 +0,0 @@--- 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/ClassState.hs view
@@ -0,0 +1,141 @@+-- 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\\ClassState.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. +-- +-- ClassState.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBState.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.ClassState 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\\ClassState.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +import HGamer3D.Bindings.OIS.EnumBindableType +{-# LINE 57 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +import HGamer3D.Bindings.OIS.EnumStateType +{-# LINE 58 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} + + +cSGetBindableType :: HG3DClass -> IO (EnumBindableType) +cSGetBindableType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetBindableType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 64 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; +cSGetBindableName :: HG3DClass -> IO (String) +cSGetBindableName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSGetBindableName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 68 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; +cSIsActive :: HG3DClass -> IO (Bool) +cSIsActive a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSIsActive'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 72 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; +cSHasChanged :: HG3DClass -> IO (Bool) +cSHasChanged a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSHasChanged'_ a1' a2' >>= \res -> + peekBoolUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 76 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; +cSGetFullName :: HG3DClass -> IO (String) +cSGetFullName a1 = + withHG3DClass a1 $ \a1' -> + alloc64k $ \a2' -> + cSGetFullName'_ a1' a2' >>= \res -> + peekCString a2'>>= \a2'' -> + return (a2'') +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; +cSGetStateType :: HG3DClass -> IO (EnumStateType) +cSGetStateType a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSGetStateType'_ a1' a2' >>= \res -> + peekEnumUtil a2'>>= \a2'' -> + return (a2'') +{-# LINE 84 "HGamer3D\\Bindings\\OIS\\ClassState.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_getBindableType_c" + cSGetBindableType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_getBindableName_c" + cSGetBindableName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_isActive_c" + cSIsActive'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_hasChanged_c" + cSHasChanged'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_getFullName_c" + cSGetFullName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassState.chs.h cS_getStateType_c" + cSGetStateType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
+ HGamer3D/Bindings/OIS/ClassSystem.hs view
@@ -0,0 +1,372 @@+-- 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\\ClassSystem.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. +-- +-- ClassSystem.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBSystem.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.ClassSystem 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\\ClassSystem.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} + + +cSyFinalize :: HG3DClass -> IO () +cSyFinalize a1 = + withHG3DClass a1 $ \a1' -> + cSyFinalize'_ a1' >>= \res -> + return () +{-# LINE 61 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyProcess :: HG3DClass -> Float -> IO () +cSyProcess a1 a2 = + withHG3DClass a1 $ \a1' -> + let {a2' = realToFrac a2} in + cSyProcess'_ a1' a2' >>= \res -> + return () +{-# LINE 65 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyGetDevice :: HG3DClass -> String -> IO (HG3DClass) +cSyGetDevice a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyGetDevice'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 70 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyHasDevice :: HG3DClass -> String -> IO (Bool) +cSyHasDevice a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyHasDevice'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 75 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyLookupState :: HG3DClass -> String -> IO (HG3DClass) +cSyLookupState a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyLookupState'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyCreateActionSchema :: HG3DClass -> String -> Bool -> IO (HG3DClass) +cSyCreateActionSchema a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + alloca $ \a4' -> + cSyCreateActionSchema'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 86 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyDestroyActionSchema :: HG3DClass -> String -> IO () +cSyDestroyActionSchema a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSyDestroyActionSchema'_ a1' a2' >>= \res -> + return () +{-# LINE 90 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyDestroyActionSchema2 :: HG3DClass -> HG3DClass -> IO () +cSyDestroyActionSchema2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyDestroyActionSchema2'_ a1' a2' >>= \res -> + return () +{-# LINE 94 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyGetActionSchema :: HG3DClass -> String -> IO (HG3DClass) +cSyGetActionSchema a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyGetActionSchema'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 99 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyHasActionSchema :: HG3DClass -> String -> IO (Bool) +cSyHasActionSchema a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyHasActionSchema'_ a1' a2' a3' >>= \res -> + peekBoolUtil a3'>>= \a3'' -> + return (a3'') +{-# LINE 104 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSySetDefaultActionSchema :: HG3DClass -> HG3DClass -> IO () +cSySetDefaultActionSchema a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSySetDefaultActionSchema'_ a1' a2' >>= \res -> + return () +{-# LINE 108 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSySetDefaultActionSchema2 :: HG3DClass -> String -> IO () +cSySetDefaultActionSchema2 a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + cSySetDefaultActionSchema2'_ a1' a2' >>= \res -> + return () +{-# LINE 112 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyGetDefaultActionSchemaAutoCreate :: HG3DClass -> IO (HG3DClass) +cSyGetDefaultActionSchemaAutoCreate a1 = + withHG3DClass a1 $ \a1' -> + alloca $ \a2' -> + cSyGetDefaultActionSchemaAutoCreate'_ a1' a2' >>= \res -> + peek a2'>>= \a2'' -> + return (a2'') +{-# LINE 116 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyLookupAction :: HG3DClass -> String -> Bool -> IO (HG3DClass) +cSyLookupAction a1 a2 a3 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + let {a3' = fromBool a3} in + alloca $ \a4' -> + cSyLookupAction'_ a1' a2' a3' a4' >>= \res -> + peek a4'>>= \a4'' -> + return (a4'') +{-# LINE 122 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyLookupBindable :: HG3DClass -> String -> IO (HG3DClass) +cSyLookupBindable a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyLookupBindable'_ a1' a2' a3' >>= \res -> + peek a3'>>= \a3'' -> + return (a3'') +{-# LINE 127 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyAddListenerToAllStates :: HG3DClass -> HG3DClass -> IO () +cSyAddListenerToAllStates a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyAddListenerToAllStates'_ a1' a2' >>= \res -> + return () +{-# LINE 131 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyRemoveListenerFromAllStates :: HG3DClass -> HG3DClass -> IO () +cSyRemoveListenerFromAllStates a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyRemoveListenerFromAllStates'_ a1' a2' >>= \res -> + return () +{-# LINE 135 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyAddListenerToAllActions :: HG3DClass -> HG3DClass -> IO () +cSyAddListenerToAllActions a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyAddListenerToAllActions'_ a1' a2' >>= \res -> + return () +{-# LINE 139 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyRemoveListenerFromAllActions :: HG3DClass -> HG3DClass -> IO () +cSyRemoveListenerFromAllActions a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyRemoveListenerFromAllActions'_ a1' a2' >>= \res -> + return () +{-# LINE 143 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyAddListenerToAllBindables :: HG3DClass -> HG3DClass -> IO () +cSyAddListenerToAllBindables a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyAddListenerToAllBindables'_ a1' a2' >>= \res -> + return () +{-# LINE 147 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyRemoveListenerFromAllBindables :: HG3DClass -> HG3DClass -> IO () +cSyRemoveListenerFromAllBindables a1 a2 = + withHG3DClass a1 $ \a1' -> + withHG3DClass a2 $ \a2' -> + cSyRemoveListenerFromAllBindables'_ a1' a2' >>= \res -> + return () +{-# LINE 151 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyLoadActionSchemaFromXML :: HG3DClass -> String -> IO (Int) +cSyLoadActionSchemaFromXML a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyLoadActionSchemaFromXML'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 156 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyLoadActionSchemaFromXMLFile :: HG3DClass -> String -> IO (Int) +cSyLoadActionSchemaFromXMLFile a1 a2 = + withHG3DClass a1 $ \a1' -> + withCString a2 $ \a2' -> + alloca $ \a3' -> + cSyLoadActionSchemaFromXMLFile'_ a1' a2' a3' >>= \res -> + peekIntConv a3'>>= \a3'' -> + return (a3'') +{-# LINE 161 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyDumpDevices :: HG3DClass -> IO () +cSyDumpDevices a1 = + withHG3DClass a1 $ \a1' -> + cSyDumpDevices'_ a1' >>= \res -> + return () +{-# LINE 164 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +cSyDumpActionSchemas :: HG3DClass -> IO () +cSyDumpActionSchemas a1 = + withHG3DClass a1 $ \a1' -> + cSyDumpActionSchemas'_ a1' >>= \res -> + return () +{-# LINE 167 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; +-- created constructor function from default constructor +cSyGetSingletonPtr :: IO (HG3DClass) +cSyGetSingletonPtr = + alloca $ \a1' -> + cSyGetSingletonPtr'_ a1' >>= \res -> + peek a1'>>= \a1'' -> + return (a1'') +{-# LINE 171 "HGamer3D\\Bindings\\OIS\\ClassSystem.chs" #-} +; + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_finalize_c" + cSyFinalize'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_process_c" + cSyProcess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_getDevice_c" + cSyGetDevice'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_hasDevice_c" + cSyHasDevice'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_lookupState_c" + cSyLookupState'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_createActionSchema_c" + cSyCreateActionSchema'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_destroyActionSchema_c" + cSyDestroyActionSchema'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_destroyActionSchema2_c" + cSyDestroyActionSchema2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_getActionSchema_c" + cSyGetActionSchema'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_hasActionSchema_c" + cSyHasActionSchema'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_setDefaultActionSchema_c" + cSySetDefaultActionSchema'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_setDefaultActionSchema2_c" + cSySetDefaultActionSchema2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_getDefaultActionSchemaAutoCreate_c" + cSyGetDefaultActionSchemaAutoCreate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_lookupAction_c" + cSyLookupAction'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_lookupBindable_c" + cSyLookupBindable'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_addListenerToAllStates_c" + cSyAddListenerToAllStates'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_removeListenerFromAllStates_c" + cSyRemoveListenerFromAllStates'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_addListenerToAllActions_c" + cSyAddListenerToAllActions'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_removeListenerFromAllActions_c" + cSyRemoveListenerFromAllActions'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_addListenerToAllBindables_c" + cSyAddListenerToAllBindables'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_removeListenerFromAllBindables_c" + cSyRemoveListenerFromAllBindables'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_loadActionSchemaFromXML_c" + cSyLoadActionSchemaFromXML'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_loadActionSchemaFromXMLFile_c" + cSyLoadActionSchemaFromXMLFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_dumpDevices_c" + cSyDumpDevices'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_dumpActionSchemas_c" + cSyDumpActionSchemas'_ :: ((HG3DClassPtr) -> (IO ())) + +foreign import ccall safe "HGamer3D\\Bindings\\OIS\\ClassSystem.chs.h cSy_getSingletonPtr_c" + cSyGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))
+ HGamer3D/Bindings/OIS/ClassTriggerAction.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\\ClassTriggerAction.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. +-- +-- ClassTriggerAction.chs +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBTriggerAction.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.ClassTriggerAction 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\\ClassTriggerAction.chs" #-} +import HGamer3D.Bindings.OIS.ClassPtr +{-# LINE 55 "HGamer3D\\Bindings\\OIS\\ClassTriggerAction.chs" #-} +import HGamer3D.Bindings.OIS.Utils +{-# LINE 56 "HGamer3D\\Bindings\\OIS\\ClassTriggerAction.chs" #-} + +
− HGamer3D/Bindings/OIS/ClassVector3.hs
@@ -1,65 +0,0 @@--- 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/EnumActionType.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\\EnumActionType.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. +-- +-- EnumActionType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBAction.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.EnumActionType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from Module-OIS\oisb\include\OISBAction.h line:33 -} +data EnumActionType = AtTrigger + | AtSequence + | AtAnalogAxis + deriving (Enum,Eq)
− HGamer3D/Bindings/OIS/EnumAddOnFactories.hs
@@ -1,65 +0,0 @@--- 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/EnumBindableType.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\\EnumBindableType.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. +-- +-- EnumBindableType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBBindable.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.EnumBindableType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from Module-OIS\oisb\include\OISBBindable.h line:37 -} +data EnumBindableType = BtState + | BtAction + deriving (Enum,Eq)
− HGamer3D/Bindings/OIS/EnumComponentType.hs
@@ -1,74 +0,0 @@--- 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
@@ -1,61 +0,0 @@--- 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
@@ -1,74 +0,0 @@--- 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
@@ -1,95 +0,0 @@--- 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
@@ -1,55 +0,0 @@--- 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
@@ -1,491 +0,0 @@--- 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
@@ -1,65 +0,0 @@--- 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
@@ -1,80 +0,0 @@--- 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/EnumStateType.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\\EnumStateType.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. +-- +-- EnumStateType.h +-- +-- +-- +-- +-- File for type, method, enum or function stubs +-- in: "Module-OIS\oisb\include\OISBState.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.EnumStateType where + +import C2HS +import Foreign +import Foreign.Ptr +import Foreign.C +import Monad (liftM, liftM2) + + + + +{- enum from Module-OIS\oisb\include\OISBState.h line:35 -} +data EnumStateType = StAnalogAxis + | StDigital + deriving (Enum,Eq)
− HGamer3D/Bindings/OIS/EnumTextTranslationMode.hs
@@ -1,56 +0,0 @@--- 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
@@ -1,71 +0,0 @@--- 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/Utils.hs view
@@ -80,21 +80,14 @@ peekEnumUtil :: (Enum a, Integral b, Storable b) => Ptr b -> IO a peekEnumUtil = liftM cToEnum . peek - - -fUInitializeOis :: HG3DClass -> IO (HG3DClass, HG3DClass, HG3DClass) + +fUInitializeOis :: HG3DClass -> IO () 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" #-} + fUInitializeOis'_ a1' >>= \res -> + return () +{-# LINE 80 "HGamer3D\\Bindings\\OIS\\Utils.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\OIS\\Utils.chs.h fU_initializeOIS_c" - fUInitializeOis'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))) + fUInitializeOis'_ :: ((HG3DClassPtr) -> (IO ()))
LICENSE view
@@ -1,4 +1,4 @@-Copyright 2012 Dr. Peter Althainz +Copyright (c) 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.
+ include/ClassAction.h view
@@ -0,0 +1,72 @@+// 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. +// +// ClassAction.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAction.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 "EnumBindableType.h" +#include "EnumActionType.h" + + +// original function: BindableType getBindableType(); +void cA_getBindableType_c(struct hg3dclass_struct *classptr_c, enum EnumBindableType * result_c); +// original function: String getBindableName(); +void cA_getBindableName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool isActive(); +void cA_isActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasChanged(); +void cA_hasChanged_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: String getFullName(); +void cA_getFullName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: ActionType getActionType(); +void cA_getActionType_c(struct hg3dclass_struct *classptr_c, enum EnumActionType * result_c); +// original function: Binding* createBinding(); +void cA_createBinding_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: void destroyBinding(Binding* binding); +void cA_destroyBinding_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c); +// original function: void bind(Bindable* bindable); +void cA_bind_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c); +// original function: void bind(Bindable* bindable1, Bindable* bindable2); +void cA_bind2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable1_c, struct hg3dclass_struct * bindable2_c); +// original function: void bind(Bindable* bindable1, Bindable* bindable2, Bindable* bindable3); +void cA_bind3_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable1_c, struct hg3dclass_struct * bindable2_c, struct hg3dclass_struct * bindable3_c); +// original function: void bind(const String& bindable); +void cA_bind4_c(struct hg3dclass_struct *classptr_c, char * bindable_c); +// original function: void bind(const String& bindable1, const String& bindable2); +void cA_bind5_c(struct hg3dclass_struct *classptr_c, char * bindable1_c, char * bindable2_c); +// original function: void bind(const String& bindable, const String& bindable2, const String& bindable3); +void cA_bind6_c(struct hg3dclass_struct *classptr_c, char * bindable_c, char * bindable2_c, char * bindable3_c); +// original function: void process(Real delta); +void cA_process_c(struct hg3dclass_struct *classptr_c, float delta_c); +// original function: void destroyItself(); +void cA_destroyItself_c(struct hg3dclass_struct *classptr_c);
+ include/ClassActionSchema.h view
@@ -0,0 +1,65 @@+// 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. +// +// ClassActionSchema.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBActionSchema.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 "EnumActionType.h" + + +// original function: void setEnabled(bool enabled); +void cAs_setEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: Action* createAction(ActionType type, const String& name); +void cAs_createAction_c(struct hg3dclass_struct *classptr_c, enum EnumActionType type_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: TriggerAction* createTriggerAction(const String& name); +void cAs_createTriggerAction_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: AnalogAxisAction* createAnalogAxisAction(const String& name); +void cAs_createAnalogAxisAction_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: SequenceAction* createSequenceAction(const String& name); +void cAs_createSequenceAction_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void destroyAction(const String& name); +void cAs_destroyAction_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroyAction(Action* action); +void cAs_destroyAction2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * action_c); +// original function: Action* getAction(const String& name); +void cAs_getAction_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: bool hasAction(const String& name); +void cAs_hasAction_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void addListenerToAllActions(BindableListener* listener); +void cAs_addListenerToAllActions_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListenerFromAllActions(BindableListener* listener); +void cAs_removeListenerFromAllActions_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void process(Real delta); +void cAs_process_c(struct hg3dclass_struct *classptr_c, float delta_c); +// original function: void dump(); +void cAs_dump_c(struct hg3dclass_struct *classptr_c);
+ include/ClassAnalogAxisAction.h view
@@ -0,0 +1,65 @@+// 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. +// +// ClassAnalogAxisAction.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAnalogAxisAction.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 "EnumActionType.h" + + +// original function: ActionType getActionType(); +void cAaa_getActionType_c(struct hg3dclass_struct *classptr_c, enum EnumActionType * result_c); +// original function: void setUseAbsoluteValues(bool use); +void cAaa_setUseAbsoluteValues_c(struct hg3dclass_struct *classptr_c, int use_c); +// original function: bool getUseAbsoluteValues(); +void cAaa_getUseAbsoluteValues_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: Real getAbsoluteValue(); +void cAaa_getAbsoluteValue_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: Real getRelativeValue(); +void cAaa_getRelativeValue_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setMinimumValue(Real min); +void cAaa_setMinimumValue_c(struct hg3dclass_struct *classptr_c, float min_c); +// original function: Real getMinimumValue(); +void cAaa_getMinimumValue_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setMaximumValue(Real max); +void cAaa_setMaximumValue_c(struct hg3dclass_struct *classptr_c, float max_c); +// original function: Real getMaximumValue(); +void cAaa_getMaximumValue_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setSensitivity(Real sensitivity); +void cAaa_setSensitivity_c(struct hg3dclass_struct *classptr_c, float sensitivity_c); +// original function: Real getSensitivity(); +void cAaa_getSensitivity_c(struct hg3dclass_struct *classptr_c, float * result_c); +// original function: void setAnalogEmulator(AnalogEmulator* emulator); +void cAaa_setAnalogEmulator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * emulator_c); +// original function: AnalogEmulator* getAnalogEmulator(); +void cAaa_getAnalogEmulator_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
+ include/ClassAnalogAxisState.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. +// +// ClassAnalogAxisState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAnalogAxisState.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 "EnumStateType.h" + + +// original function: StateType getStateType(); +void cAas_getStateType_c(struct hg3dclass_struct *classptr_c, enum EnumStateType * result_c); +// original function: void _setAbsoluteValue(Real value); +void cAas__setAbsoluteValue_c(struct hg3dclass_struct *classptr_c, float value_c);
+ include/ClassAnalogEmulator.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. +// +// ClassAnalogEmulator.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAnalogEmulation.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: const String& getType(); +void cAe_getType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool checkBinding(Binding* binding); +void cAe_checkBinding_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c, int * result_c); +// original function: Real emulateRelative(Binding* binding, Real delta); +void cAe_emulateRelative_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c, float delta_c, float * result_c);
− include/ClassAxis.h
@@ -1,40 +0,0 @@-// 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/ClassBindable.h view
@@ -0,0 +1,51 @@+// 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. +// +// ClassBindable.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBBindable.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 "EnumBindableType.h" + + +// original function: BindableType getBindableType(); +void cBe_getBindableType_c(struct hg3dclass_struct *classptr_c, enum EnumBindableType * result_c); +// original function: String getBindableName(); +void cBe_getBindableName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool isActive(); +void cBe_isActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasChanged(); +void cBe_hasChanged_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: void addListener(BindableListener* listener); +void cBe_addListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListener(BindableListener* listener); +void cBe_removeListener_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c);
+ include/ClassBindableListener.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. +// +// ClassBindableListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBBindable.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 bindableActivated(Bindable* bindable); +void cBl_bindableActivated_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c); +// original function: void bindableDeactivated(Bindable* bindable); +void cBl_bindableDeactivated_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c); +// original function: void bindableProcessed(Bindable* bindable); +void cBl_bindableProcessed_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c);
+ include/ClassBinding.h view
@@ -0,0 +1,68 @@+// 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. +// +// ClassBinding.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBBinding.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 _setActive(bool active); +void cB__setActive_c(struct hg3dclass_struct *classptr_c, int active_c); +// original function: void bind(Bindable* bindable, const String& role); +void cB_bind_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c, char * role_c); +// original function: void bind(const String& bindable, const String& role); +void cB_bind2_c(struct hg3dclass_struct *classptr_c, char * bindable_c, char * role_c); +// original function: void unbind(Bindable* bindable); +void cB_unbind_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c); +// original function: void unbind(const String& bindable); +void cB_unbind2_c(struct hg3dclass_struct *classptr_c, char * bindable_c); +// original function: bool isBound(Bindable* bindable); +void cB_isBound_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c, int * result_c); +// original function: bool isBound(const String& role); +void cB_isBound2_c(struct hg3dclass_struct *classptr_c, char * role_c, int * result_c); +// original function: Bindable* getBindable(size_t idx); +void cB_getBindable_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: State* getState(size_t idx); +void cB_getState_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: Action* getAction(size_t idx); +void cB_getAction_c(struct hg3dclass_struct *classptr_c, int idx_c, struct hg3dclass_struct * result_c); +// original function: Bindable* getBindable(const String& role); +void cB_getBindable2_c(struct hg3dclass_struct *classptr_c, char * role_c, struct hg3dclass_struct * result_c); +// original function: State* getState(const String& role); +void cB_getState2_c(struct hg3dclass_struct *classptr_c, char * role_c, struct hg3dclass_struct * result_c); +// original function: Action* getAction(const String& role); +void cB_getAction2_c(struct hg3dclass_struct *classptr_c, char * role_c, struct hg3dclass_struct * result_c); +// original function: bool isAnyBindableActive(); +void cB_isAnyBindableActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool areAllBindablesActive(); +void cB_areAllBindablesActive_c(struct hg3dclass_struct *classptr_c, int * result_c);
− include/ClassButton.h
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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/ClassDebugBindableListener.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. +// +// ClassDebugBindableListener.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBBindable.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 bindableActivated(Bindable* bindable); +void cDbl_bindableActivated_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c); +// original function: void bindableDeactivated(Bindable* bindable); +void cDbl_bindableDeactivated_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * bindable_c);
+ include/ClassDevice.h view
@@ -0,0 +1,50 @@+// 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. +// +// ClassDevice.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBDevice.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: const String& getName(); +void cD_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: State* getState(const String& name); +void cD_getState_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: bool hasState(const String& name); +void cD_hasState_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void addListenerToAllStates(BindableListener* listener); +void cD_addListenerToAllStates_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListenerFromAllStates(BindableListener* listener); +void cD_removeListenerFromAllStates_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void process(Real delta); +void cD_process_c(struct hg3dclass_struct *classptr_c, float delta_c);
+ include/ClassDigitalState.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. +// +// ClassDigitalState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBDigitalState.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 "EnumStateType.h" + + +// original function: StateType getStateType(); +void cDs_getStateType_c(struct hg3dclass_struct *classptr_c, enum EnumStateType * result_c); +// original function: void _setValue(bool value); +void cDs__setValue_c(struct hg3dclass_struct *classptr_c, int value_c);
− include/ClassEffect.h
@@ -1,40 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,49 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,42 +0,0 @@-// 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
@@ -1,53 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -22,7 +22,7 @@ // // // File for type, method, enum or function stubs -// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISJoyStick.h" +// in: "Module-OIS\oisb\include\OISBJoyStick.h" // // each stub combines the following files: // a C++ implementation file, transforming cpp calls into C-functions @@ -34,16 +34,5 @@ #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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,40 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -22,7 +22,7 @@ // // // File for type, method, enum or function stubs -// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISKeyboard.h" +// in: "Module-OIS\oisb\include\OISBKeyboard.h" // // each stub combines the following files: // a C++ implementation file, transforming cpp calls into C-functions @@ -34,22 +34,9 @@ #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); +// original function: const String& getName(); +void cKb_getName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: void process(Real delta); +void cKb_process_c(struct hg3dclass_struct *classptr_c, float delta_c);
+ include/ClassLinearAnalogEmulator.h view
@@ -0,0 +1,62 @@+// 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. +// +// ClassLinearAnalogEmulator.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAnalogEmulation.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: const String& getType(); +void cLae_getType_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool checkBinding(Binding* binding); +void cLae_checkBinding_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c, int * result_c); +// original function: Real emulateRelative(Binding* binding, Real delta); +void cLae_emulateRelative_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c, float delta_c, float * result_c); +// original function: Real emulateAbsolute(Binding* binding, Real delta); +void cLae_emulateAbsolute_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * binding_c, float delta_c, float * result_c); +// original function: void setDecreaseSpeed(Real speed); +void cLae_setDecreaseSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setIncreaseSpeed(Real speed); +void cLae_setIncreaseSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setSpeed(Real speed); +void cLae_setSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setReturnEnabled(bool enabled); +void cLae_setReturnEnabled_c(struct hg3dclass_struct *classptr_c, int enabled_c); +// original function: void setReturnValue(Real value); +void cLae_setReturnValue_c(struct hg3dclass_struct *classptr_c, float value_c); +// original function: void setReturnDecreaseSpeed(Real speed); +void cLae_setReturnDecreaseSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setReturnIncreaseSpeed(Real speed); +void cLae_setReturnIncreaseSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c); +// original function: void setReturnSpeed(Real speed); +void cLae_setReturnSpeed_c(struct hg3dclass_struct *classptr_c, float speed_c);
include/ClassMouse.h view
@@ -22,7 +22,7 @@ // // // File for type, method, enum or function stubs -// in: "..\OgreSDK_vc10_v1-7-3\include\OIS\OISMouse.h" +// in: "Module-OIS\oisb\include\OISBMouse.h" // // each stub combines the following files: // a C++ implementation file, transforming cpp calls into C-functions @@ -36,7 +36,3 @@ #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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,40 +0,0 @@-// 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
@@ -1,53 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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
@@ -1,38 +0,0 @@-// 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/ClassPropertySet.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. +// +// ClassPropertySet.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBPropertySet.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
@@ -28,96 +28,63 @@ } hg3dclass_struct; void *getOISClassPtr(hg3dclass_struct inSt, const char* className); -typedef void ClassJoyStickListener; -hg3dclass_struct getOISClass_JoyStickListener(void *ptrIn); +typedef void ClassState; +hg3dclass_struct getOISClass_State(void *ptrIn); -typedef void ClassVector3; -hg3dclass_struct getOISClass_Vector3(void *ptrIn); +typedef void ClassAnalogAxisState; +hg3dclass_struct getOISClass_AnalogAxisState(void *ptrIn); +typedef void ClassSequenceAction; +hg3dclass_struct getOISClass_SequenceAction(void *ptrIn); + +typedef void ClassDebugBindableListener; +hg3dclass_struct getOISClass_DebugBindableListener(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 ClassDevice; +hg3dclass_struct getOISClass_Device(void *ptrIn); -typedef void ClassJoyStickState; -hg3dclass_struct getOISClass_JoyStickState(void *ptrIn); +typedef void ClassAction; +hg3dclass_struct getOISClass_Action(void *ptrIn); -typedef void ClassConditionalEffect; -hg3dclass_struct getOISClass_ConditionalEffect(void *ptrIn); +typedef void ClassAnalogEmulator; +hg3dclass_struct getOISClass_AnalogEmulator(void *ptrIn); -typedef void ClassMouseEvent; -hg3dclass_struct getOISClass_MouseEvent(void *ptrIn); +typedef void ClassLinearAnalogEmulator; +hg3dclass_struct getOISClass_LinearAnalogEmulator(void *ptrIn); -typedef void ClassAxis; -hg3dclass_struct getOISClass_Axis(void *ptrIn); +typedef void ClassTriggerAction; +hg3dclass_struct getOISClass_TriggerAction(void *ptrIn); -typedef void ClassPov; -hg3dclass_struct getOISClass_Pov(void *ptrIn); +typedef void ClassSystem; +hg3dclass_struct getOISClass_System(void *ptrIn); -typedef void ClassObject; -hg3dclass_struct getOISClass_Object(void *ptrIn); +typedef void ClassBindable; +hg3dclass_struct getOISClass_Bindable(void *ptrIn); -typedef void ClassComponent; -hg3dclass_struct getOISClass_Component(void *ptrIn); +typedef void ClassAnalogAxisAction; +hg3dclass_struct getOISClass_AnalogAxisAction(void *ptrIn); +typedef void ClassDigitalState; +hg3dclass_struct getOISClass_DigitalState(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 ClassBindableListener; +hg3dclass_struct getOISClass_BindableListener(void *ptrIn); -typedef void ClassInterface; -hg3dclass_struct getOISClass_Interface(void *ptrIn); +typedef void ClassPropertySet; +hg3dclass_struct getOISClass_PropertySet(void *ptrIn); -typedef void ClassKeyEvent; -hg3dclass_struct getOISClass_KeyEvent(void *ptrIn); +typedef void ClassActionSchema; +hg3dclass_struct getOISClass_ActionSchema(void *ptrIn); -typedef void ClassException; -hg3dclass_struct getOISClass_Exception(void *ptrIn); +typedef void ClassBinding; +hg3dclass_struct getOISClass_Binding(void *ptrIn);
− include/ClassRampEffect.h
@@ -1,38 +0,0 @@-// 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/ClassSequenceAction.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. +// +// ClassSequenceAction.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBSequenceAction.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 "EnumActionType.h" + + +// original function: ActionType getActionType(); +void cSa_getActionType_c(struct hg3dclass_struct *classptr_c, enum EnumActionType * result_c); +// original function: Binding* createBinding(); +void cSa_createBinding_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c);
− include/ClassSlider.h
@@ -1,38 +0,0 @@-// 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/ClassState.h view
@@ -0,0 +1,52 @@+// 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. +// +// ClassState.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBState.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 "EnumBindableType.h" +#include "EnumStateType.h" + + +// original function: BindableType getBindableType(); +void cS_getBindableType_c(struct hg3dclass_struct *classptr_c, enum EnumBindableType * result_c); +// original function: String getBindableName(); +void cS_getBindableName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: bool isActive(); +void cS_isActive_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: bool hasChanged(); +void cS_hasChanged_c(struct hg3dclass_struct *classptr_c, int * result_c); +// original function: String getFullName(); +void cS_getFullName_c(struct hg3dclass_struct *classptr_c, char * result_c); +// original function: StateType getStateType(); +void cS_getStateType_c(struct hg3dclass_struct *classptr_c, enum EnumStateType * result_c);
+ include/ClassSystem.h view
@@ -0,0 +1,90 @@+// 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. +// +// ClassSystem.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBSystem.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 finalize(); +void cSy_finalize_c(struct hg3dclass_struct *classptr_c); +// original function: void process(Real delta); +void cSy_process_c(struct hg3dclass_struct *classptr_c, float delta_c); +// original function: Device* getDevice(const String& name); +void cSy_getDevice_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: bool hasDevice(const String& name); +void cSy_hasDevice_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: State* lookupState(const String& name); +void cSy_lookupState_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: ActionSchema* createActionSchema(const String& name, bool setAsDefault); +void cSy_createActionSchema_c(struct hg3dclass_struct *classptr_c, char * name_c, int setAsDefault_c, struct hg3dclass_struct * result_c); +// original function: void destroyActionSchema(const String& name); +void cSy_destroyActionSchema_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: void destroyActionSchema(ActionSchema* schema); +void cSy_destroyActionSchema2_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * schema_c); +// original function: ActionSchema* getActionSchema(const String& name); +void cSy_getActionSchema_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: bool hasActionSchema(const String& name); +void cSy_hasActionSchema_c(struct hg3dclass_struct *classptr_c, char * name_c, int * result_c); +// original function: void setDefaultActionSchema(ActionSchema* schema); +void cSy_setDefaultActionSchema_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * schema_c); +// original function: void setDefaultActionSchema(const String& name); +void cSy_setDefaultActionSchema2_c(struct hg3dclass_struct *classptr_c, char * name_c); +// original function: ActionSchema* getDefaultActionSchemaAutoCreate(); +void cSy_getDefaultActionSchemaAutoCreate_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * result_c); +// original function: Action* lookupAction(const String& name, bool throwOnMissing); +void cSy_lookupAction_c(struct hg3dclass_struct *classptr_c, char * name_c, int throwOnMissing_c, struct hg3dclass_struct * result_c); +// original function: Bindable* lookupBindable(const String& name); +void cSy_lookupBindable_c(struct hg3dclass_struct *classptr_c, char * name_c, struct hg3dclass_struct * result_c); +// original function: void addListenerToAllStates(BindableListener* listener); +void cSy_addListenerToAllStates_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListenerFromAllStates(BindableListener* listener); +void cSy_removeListenerFromAllStates_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void addListenerToAllActions(BindableListener* listener); +void cSy_addListenerToAllActions_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListenerFromAllActions(BindableListener* listener); +void cSy_removeListenerFromAllActions_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void addListenerToAllBindables(BindableListener* listener); +void cSy_addListenerToAllBindables_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: void removeListenerFromAllBindables(BindableListener* listener); +void cSy_removeListenerFromAllBindables_c(struct hg3dclass_struct *classptr_c, struct hg3dclass_struct * listener_c); +// original function: int loadActionSchemaFromXML(const char * xmlContent); +void cSy_loadActionSchemaFromXML_c(struct hg3dclass_struct *classptr_c, char* xmlContent_c, int * result_c); +// original function: int loadActionSchemaFromXMLFile(const String& filename); +void cSy_loadActionSchemaFromXMLFile_c(struct hg3dclass_struct *classptr_c, char * filename_c, int * result_c); +// original function: void dumpDevices(); +void cSy_dumpDevices_c(struct hg3dclass_struct *classptr_c); +// original function: void dumpActionSchemas(); +void cSy_dumpActionSchemas_c(struct hg3dclass_struct *classptr_c); +// created singleton getSingletonPtr function +void cSy_getSingletonPtr_c(struct hg3dclass_struct *result_c);
+ include/ClassTriggerAction.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. +// +// ClassTriggerAction.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBTriggerAction.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
@@ -1,38 +0,0 @@-// 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/EnumActionType.h view
@@ -0,0 +1,48 @@+// 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. +// +// EnumActionType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBAction.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 Module-OIS\oisb\include\OISBAction.h line:33 + enum EnumActionType + { + /// simplest form of action, all active states in at least one binding activate this + AT_TRIGGER, + /// "iddqd" type of action, you have to activate and deactivate all the states in the binding in a sequence + AT_SEQUENCE, + + /// analog action, contains one floating point number (e.g. steering) + AT_ANALOG_AXIS + };
− include/EnumAddOnFactories.h
@@ -1,44 +0,0 @@-// 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/EnumBindableType.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. +// +// EnumBindableType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBBindable.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 Module-OIS\oisb\include\OISBBindable.h line:37 + enum EnumBindableType + { + /// bindable is an input state + BT_STATE, + /// bindable is an action + BT_ACTION + };
− include/EnumComponentType.h
@@ -1,47 +0,0 @@-// 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
@@ -1,49 +0,0 @@-// 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
@@ -1,47 +0,0 @@-// 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
@@ -1,55 +0,0 @@-// 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
@@ -1,43 +0,0 @@-// 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
@@ -1,186 +0,0 @@-// 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
@@ -1,44 +0,0 @@-// 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
@@ -1,43 +0,0 @@-// 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/EnumStateType.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. +// +// EnumStateType.h +// +// +// +// +// File for type, method, enum or function stubs +// in: "Module-OIS\oisb\include\OISBState.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 Module-OIS\oisb\include\OISBState.h line:35 + enum EnumStateType + { + /// analog axis - characterized by floating point number, describing axis + ST_ANALOG_AXIS, + /// digital - characterized by one boolean - true or false + ST_DIGITAL + };
− include/EnumTextTranslationMode.h
@@ -1,44 +0,0 @@-// 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
@@ -1,46 +0,0 @@-// 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
@@ -20,10 +20,10 @@ // OISDllDefines.h -#ifndef _HGamer3DOIS_DLLDEFINES_H_ -#define _HGamer3DOIS_DLLDEFINES_H_ +#ifndef _HGamer3DOIS013_DLLDEFINES_H_ +#define _HGamer3DOIS013_DLLDEFINES_H_ -/* Cmake will define HGamer3DOIS_EXPORTS on Windows when it +/* Cmake will define HGamer3DOIS013_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 @@ -33,13 +33,13 @@ // We are using the Visual Studio Compiler and building Shared libraries #if (defined (_WIN32)) && !(defined (__GNUC__)) - #if defined(HGamer3DOIS_EXPORTS) + #if defined(HGamer3DOIS013_EXPORTS) #define OIS_LIB_EXPORT __declspec(dllexport) #else #define OIS_LIB_EXPORT __declspec(dllimport) - #endif /* HGamer3DOIS_EXPORTS */ + #endif /* HGamer3DOIS013_EXPORTS */ #else /* defined (_WIN32) */ #define OIS_LIB_EXPORT #endif -#endif /* _HGamer3DOIS_DLLDEFINES_H_ */ +#endif /* _HGamer3DOIS013_DLLDEFINES_H_ */
include/Utils.h view
@@ -18,4 +18,4 @@ limitations under the License. */ -void fU_initializeOIS_c(struct hg3dclass_struct *win, struct hg3dclass_struct *rmgr, struct hg3dclass_struct *rkey, struct hg3dclass_struct *rmouse); +void fU_initializeOIS_c(struct hg3dclass_struct *win);