How to send an input key event from code?

Hi Wizardoutlaw,

I initially misread your question and missed that you wanted to send inputs over a network. However, Action Mappings may still be useful, depending on exactly what you are trying to do. Action Mappings are used to fire input events when specific keys, or combinations of keys, are pressed. You can then specify in code what happens whenever that event occurs by referencing the name of the Action Mapping. The primary benefit of doing it like this would be that you can change the keys for the input, but your code will still work since it references the name of the Action Mapping instead of a specific key. You can see a simple Action Mapping setup here.