Recording

Blitz3D Forums/Blitz3D Beginners Area/Recording

pc_tek(Posted 2010) [#1]
Hi all!

Are there any code functions to record mouse movements and clicks?

If not, I'll have to write one myself.


AJ00200(Posted 2010) [#2]
What do you mean by record.
And no, I don't think so, but I don't know what you mean by record.


pc_tek(Posted 2010) [#3]
I would like to record the movement of the mouse...and play it back when needed.


Matty(Posted 2010) [#4]
No there are no 'basic commands' to do this - you will need to to so yourself.

There are many ways of doing so. The simplest is to have a type such as "

TYPE recordmouse

FIELD frame,mousexpos,mouseypos,leftmousebutton,rightmousebutton
FIELD mousewheel#

END-TYPE

and populate the relevant fields as the game progresses.

That is the simplest way of capturing mouse clicks/movements.


_Skully(Posted 2010) [#5]
I've got this going in the TileMax input processor / cross wire module... but its pretty specific to the TileMax Timing system

Basically, provided your game is set to a specific frequency to operate and you have some kind of time counting system (tick)... you should just be able to have a TList of input events which are stamped with the game Tick...and what the key/mouse event was

Then playing back you just match up ticks and reproduce the events