[Kde-games-devel] KGame/KPlayer API usability in kdegames

Dmitry Suzdalev dimsuz at gmail.com
Wed Jul 12 09:55:20 CEST 2006


> Actually you need a KPlayer pointer only. By looking at the KGameMouseIO
> code
> you'll see that this code does only the following:
> QByteArray buffer;
> QDataStream msg(buffer, IO_WriteOnly);
> if (eatevent) {
>   kplayer->sendInput(msg);
> }
>
> where "eatevent" is the boolean parameter of the signal (and is false by
> default, i.e. nothing is sent unless the slot connected to the signals wants
> to) and "msg" is the datastream that replaces the datastream parameter.
Yes, but currently I don't know where to get this pointer to KPlayer.
It can point to computer player, or human player...
I'll contiunue my searches, thanks for your input.

Dmitry.


More information about the kde-games-devel mailing list