Re: How to get a DeviceIndex from an input

#11
game_dev5 wrote:Ok, try this:
Open defaultProfile.xml in a text editor and set "inputBlockDeviceIndex" modifier to your required device index. Read about modifiers in this link:
http://docs.cryengine.com/display/SDKDO ... ction+Maps

This one refused to work.
It seems like I can't find this modifier in documentation.
I tried putting this as a modifier as in example but it does nothing

BUT

I have added to Cry's Action Filter node a piece of code to output the device index and it really works!
Now I can functionally filter inputs from different devices in flowgraph and thats cool.

The funny thing is keyboard and gamepad 1 has the same device index 0, anyway gamepad 2 has index 1 so I will treat this later if I need to.

So thanks everyone, I got my functionality now :)

Who is online

Users browsing this forum: No registered users and 2 guests