-- 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 ()))