Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUser Input
https://www.eclipse.org/forums/index.php/mv/msg/1087995/1769828/#msg_1769828
An example of the problem I am currently having is that I have a timer which controls the movement of an automated zombie (it just moves until it reaches a wall, turns around and moves the other direction repeating this). In another capsule I have a state that uses fgetc to get user input on how to control the player character. This however raises the problem in which fgetc waits for user input and so while its waiting for user input, the automated zombie can't move, once an input is read by fgetc, the automated zombie moves one step and then it produces errors as the state diagram is not ready for another timeout
I currently can't think of any way around this problem as getting user input requires the program to be listening for key presses or a specific key press
Any help would be greatly appreciated]]>Christopher Won2017-08-03T19:34:06-00:00Re: User Input
https://www.eclipse.org/forums/index.php/mv/msg/1087995/1769833/#msg_1769833
Check out the Thread Assigment topic in the Papyrus-RT wiki to see how you can assign different parts of your model to different threads.
In more industrial contexts, the User interface would be in a separate executable and it would connect through some commincation chanel (IPC, named pipes, CORBA, etc.)]]>Charles Rivet2017-08-03T21:17:56-00:00Re: User Input
https://www.eclipse.org/forums/index.php/mv/msg/1087995/1769835/#msg_1769835
Thanks]]>Christopher Won2017-08-03T23:03:09-00:00Re: User Input
https://www.eclipse.org/forums/index.php/mv/msg/1087995/1769878/#msg_1769878
I have updated the the Thread Assigment topic in the Papyrus-RT wiki to make this clearer.]]>Charles Rivet2017-08-04T12:21:03-00:00Re: User Input
https://www.eclipse.org/forums/index.php/mv/msg/1087995/1770035/#msg_1770035
]]>Ernesto Posse2017-08-07T16:09:39-00:00