Hi
After BCF 3.0 (with Filax), this is another production, the KBS. It's libray that help you to manage binding key / mouse / joystick, finish to choice between mousehit or keyhit ...
You will be able to create control setting like commercial game ...
- Unlimited action
- 2 binding associations by action
- Multi system binding keyboad / Mouse / Joystick
- Filter / Dead Zone for Joystick
- Load / Save Setting in INI file
Code exemple:
; Create a bind without INI file
KBS_AddAction( "cam turn ", KBS_Joy_X )
; Use a key/button bind
If KBS_Action( "forward" ) Then
MoveEntity Player,0,0,25
Else If KBS_Action( "backward" ) Then
MoveEntity Player,0,0,-25
end if
; Use an Axis binding
key = KBS_Action( "cam turn" )
If key Then
If KBS_TypeACtion( "cam turn" , key ) = KBS_JoystickAxis Then
value# = KBS_ActionValue#( "cam turn right" )
TurnEntity CamAxis,0,Value# * 100,0
EndIf
endif
etc ...
to download the demo :
http://www.3dgametool.com/kbs1.0/KBS_Demo.zip
After BCF 3.0 (with Filax), this is another production, the KBS. It's libray that help you to manage binding key / mouse / joystick, finish to choice between mousehit or keyhit ...
You will be able to create control setting like commercial game ...
- Unlimited action
- 2 binding associations by action
- Multi system binding keyboad / Mouse / Joystick
- Filter / Dead Zone for Joystick
- Load / Save Setting in INI file
Code exemple:
; Create a bind without INI file
KBS_AddAction( "cam turn ", KBS_Joy_X )
; Use a key/button bind
If KBS_Action( "forward" ) Then
MoveEntity Player,0,0,25
Else If KBS_Action( "backward" ) Then
MoveEntity Player,0,0,-25
end if
; Use an Axis binding
key = KBS_Action( "cam turn" )
If key Then
If KBS_TypeACtion( "cam turn" , key ) = KBS_JoystickAxis Then
value# = KBS_ActionValue#( "cam turn right" )
TurnEntity CamAxis,0,Value# * 100,0
EndIf
endif
etc ...
to download the demo :
http://www.3dgametool.com/kbs1.0/KBS_Demo.zip