LWJGL Forum

Programming => General Java Game Development => Topic started by: mn1987 on November 17, 2011, 05:09:42

Title: Input in the form of relative co-ordinates
Post by: mn1987 on November 17, 2011, 05:09:42
Hi,
I want to create a game which receives input in the form of some co-ordinates relative to current position on an object in display. Based on this input the object moves left or right. There is no keyboard or mouse input involved. Can anyone help me understand how I should approach this problem for LWJGL library. Kindly help.
Thanks!
Title: Re: Input in the form of relative co-ordinates
Post by: CodeBunny on November 17, 2011, 11:51:47
LWJGL is a graphics library with some additional minor utilities. This isn't a graphics issue, so the majority of LWJGL is meaningless to your question. Additionally, if you don't want to use it's keyboard or mouse input, then there is literally no aspect of the library that you need to make that form of input work.

Basically, it's all up to you. That's a good thing, though.


I will admit however: what are you planning on doing where your input doesn't require a mouse or keyboard? How else are you giving instructions to your game?
Title: Re: Input in the form of relative co-ordinates
Post by: wondersonic on December 08, 2011, 09:36:26
Hi,
I want to create a game which receives input in the form of some co-ordinates relative to current position on an object in display. Based on this input the object moves left or right. There is no keyboard or mouse input involved. Can anyone help me understand how I should approach this problem for LWJGL library. Kindly help.
Thanks!

I guess, I don't understand your need. Is it related maybe to unit testing? Mocking and so on?

Maybe you can give an example?