3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on Apr 23, 2012 15:15:58 GMT -5
I need some quick help on adding another button to blitz sonic,but when i do,it gives me "M.A.V." have any idea? heres an example: ActionA ActionB and the one i want to add ActionC.
|
|
Jloy2
Full Member
Moving at a somewhat fast pace!
Posts: 191
|
Post by Jloy2 on Apr 23, 2012 16:46:16 GMT -5
Core_InputManagement.bb
; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ; STRUCTURES ; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
; --------------------------------------------------------------------------------------------------------- ; tInput_Configuration ; --------------------------------------------------------------------------------------------------------- Type tInput_Configuration Field Device Field Button Field AlternateDevice Field AlternateButton End Type ; --------------------------------------------------------------------------------------------------------- ; tInput_Buttons ; --------------------------------------------------------------------------------------------------------- Type tInput_Buttons Field Up Field Down Field Left Field Right Field ActionA Field ActionB Field ActionC Field ActionTransform ;<------- My custom action Field CameraUp Field CameraDown Field CameraLeft Field CameraRight Field CameraZoomIn Field CameraZoomOut End Type ; --------------------------------------------------------------------------------------------------------- ; tInput ; --------------------------------------------------------------------------------------------------------- Type tInput ; ---- Input mode and configuration ---- Field Mode Field Configuration.tInput_Configuration[14] ;<------- Make sure you increase this.
; ---- Input entries ----- Field Hold.tInput_Buttons Field Pressed.tInput_Buttons
; ---- Analogic Input ---- Field Movement_AnalogX# Field Movement_AnalogY# Field Movement_Direction# Field Movement_Pressure#
; ---- Analogic camera Input ---- Field Camera_AnalogX# Field Camera_AnalogY# Field Camera_Direction# Field Camera_Pressure# End Type
; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ; VARIABLES ; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
; ---- Input object ----- Global Input.tInput = New tInput Input\Hold = New tInput_Buttons Input\Pressed = New tInput_Buttons For i=0 To 13 : Input\Configuration[i] = New tInput_Configuration : Next ;<--- Make sure this is increased to.
; ---- Other values ---- Global Input_Gamepad = 0 Global Input_GamepadThreshold# = 0.2 Global Input_MouseSpeed# = 0 Global Input_MouseSensitivy# = 1.4 Global Input_MouseWheel = 0 Global Input_Lock = True
; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ; CONSTANTS ; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
; ---- Configuration constants ---- Const INPUT_BUTTON_UP = 0 Const INPUT_BUTTON_DOWN = 1 Const INPUT_BUTTON_LEFT = 2 Const INPUT_BUTTON_RIGHT = 3 Const INPUT_BUTTON_ACTION_A = 4 Const INPUT_BUTTON_ACTION_B = 5 Const INPUT_BUTTON_CAMERA_UP = 6 Const INPUT_BUTTON_CAMERA_DOWN = 7 Const INPUT_BUTTON_CAMERA_LEFT = 8 Const INPUT_BUTTON_CAMERA_RIGHT = 9 Const INPUT_BUTTON_CAMERA_ZIN = 10 Const INPUT_BUTTON_CAMERA_ZOUT = 11 Const INPUT_BUTTON_ACTION_C = 12 Const INPUT_BUTTON_ACTION_TRANSFORM = 13 <--- ACTION constant Const INPUT_DEVICE_NONE = 0 Const INPUT_DEVICE_KEYBOARD = 1 Const INPUT_DEVICE_GAMEPAD = 2 Const INPUT_DEVICE_MOUSE = 3
Const INPUT_MOUSE_XMINUS = 0 Const INPUT_MOUSE_XPLUS = 1 Const INPUT_MOUSE_YMINUS = 2 Const INPUT_MOUSE_YPLUS = 3 Const INPUT_MOUSE_WHEELMINUS = 4 Const INPUT_MOUSE_WHEELPLUS = 5 Const INPUT_MOUSE_LEFT = 6 Const INPUT_MOUSE_RIGHT = 7 Const INPUT_MOUSE_MIDDLE = 8
Const INPUT_GAMEPAD_XMINUS = 0 Const INPUT_GAMEPAD_XPLUS = 1 Const INPUT_GAMEPAD_YMINUS = 2 Const INPUT_GAMEPAD_YPLUS = 3 Const INPUT_GAMEPAD_ZMINUS = 4 Const INPUT_GAMEPAD_ZPLUS = 5 Const INPUT_GAMEPAD_UMINUS = 6 Const INPUT_GAMEPAD_UPLUS = 7 Const INPUT_GAMEPAD_VMINUS = 8 Const INPUT_GAMEPAD_VPLUS = 9 Const INPUT_GAMEPAD_YAWMINUS = 10 Const INPUT_GAMEPAD_YAWPLUS = 11 Const INPUT_GAMEPAD_PITCHMINUS = 12 Const INPUT_GAMEPAD_PITCHPLUS = 13 Const INPUT_GAMEPAD_ROLLMINUS = 14 Const INPUT_GAMEPAD_ROLLPLUS = 15 Const INPUT_GAMEPAD_BUTTON = 16
Make sure to add it to all the functions needed further in the file and also add it to be read in the XML.
|
|
3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on Apr 23, 2012 16:57:37 GMT -5
Ok,Thank you so much! you've helped me alot! im really grateful! you are a very reliable person. It Worked well! ;D
|
|
|
Post by Marble (LS5) on Apr 23, 2012 19:13:39 GMT -5
You would not believe how much trouble I had with this before "Arrow's Mod."
|
|
|
Post by sonicman19984eva on Apr 23, 2012 19:17:17 GMT -5
i wonder.....
|
|
3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on Apr 23, 2012 20:53:00 GMT -5
I know right?
|
|
Jloy2
Full Member
Moving at a somewhat fast pace!
Posts: 191
|
Post by Jloy2 on Apr 24, 2012 0:08:16 GMT -5
You would not believe how much trouble I had with this before "Arrow's Mod." Yeah, same here.
|
|
|
Post by 06hypersonic60 on Apr 24, 2012 13:45:25 GMT -5
You would not believe how much trouble I had with this before "Arrow's Mod." Yeah, same here. Same for me xD
|
|