Programming & Scripting

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Trainee TraineeMember since: 03.09.2011, 02:57Posts: 119Location: Chapel Hill, North Carolina Likes: 0
 

 Post Topic: Safe to modify SInputEvent?
PostPosted 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   Uber Modder Uber ModderMember since: 29.05.2010, 11:46Posts: 1326Location: Germany Likes: 163
 

 Post Topic: Re: Safe to modify SInputEvent?
PostPosted 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   Hardcore Modder Hardcore ModderMember since: 16.06.2010, 11:41Posts: 868Location: West Lafayette, Indiana Likes: 0
 

 Post Topic: Re: Safe to modify SInputEvent?
PostPosted 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.