Input in the form of relative co-ordinates

Started by mn1987, November 17, 2011, 05:09:42

Previous topic - Next topic

mn1987

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!

CodeBunny

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?

wondersonic

Quote from: 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!

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?
S.