Forums Gallery Downloads LOGIN |REGISTER

Safe to modify SInputEvent?

Please use this forum for questions on C++, Lua, XML, and any other languages used in CryENGINE development.


 

kwaegel
Junior Dev
Junior Dev
 
Posts: 119
Member since: 03.09.2011, 02:57
Location: Chapel Hill, North Carolina
Likes: 0

Safe to modify SInputEvent?

Postby kwaegel » 03.02.2012, 23:06

Is it safe to modify the SInputEvent and SInputSymbol structs in IInput.h? I was looking to modify them by adding Vec3 and Quat fields in addition to the standard value field. Would this dissrupt anything else in the input system?
Graduate student at the UNC-Chapel Hill Department of Computer Science. All views expressed are my own.
User avatar
hendrik
Producer
Producer
 
Posts: 1326
Member since: 29.05.2010, 11:46
Location: Germany
Likes: 163

Re: Safe to modify SInputEvent?

Postby hendrik » 04.02.2012, 06:23

yes it probably would crash since you can't recompile the rest of the engine. Simple rule is don't change any I*.h file unless you know what you're doing (and there isn't really a reason to do so don't).

Best way to extend the Events is to wrap them again into a new input listener queue with your own structure again.
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Safe to modify SInputEvent?

Postby da3dsoul » 04.02.2012, 09:06

Just something new and don't change or delete what's there. It'll be fine if there aren't any conflicts.


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community