Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

BYO games plugin :)

<< < (7/14) > >>

Michael:

--- Quote from: byo on June 16, 2006, 09:34:56 pm ---I'll try to do all updates / fixes after weekend because my friend is going to marry tomorrow.
It's time to party  8)

--- End quote ---

Hello,

Congratulations to your friend :).

I have tried on Ubuntu Dapper (rev2577, wxGTK 2.6.1, GCC 4.0.3) and it does not work too (only the P for Pause works).

Anyway, enjoy the party and do not stress too much for an update. We can wait some days, or :)?

Best wishes,
Michael

killerbot:
same problem on suse 10.1 (64bit)
- here I even have more problems (maybe driver of graphics card)
- blocks leave a trail (they color every position they passed)
- background is not black

note : Cb itself does not look that sparkling on suse (well at least in my install)

Question : how do I create a screenshot of the active window/application ??

screenshot added : does not look so nice :-(

[attachment deleted by admin]

Michael:

--- Quote from: killerbot on June 16, 2006, 10:11:45 pm ---Question : how do I create a screenshot of the active window/application ??

--- End quote ---

Hello,

I do not know on Suse, but on Gentoo and Ubuntu there is under Desktop a Take Screenshot. Never try it, anyway :).

Best wishes,
Michael

TheTuxKeeper:

--- Quote from: killerbot on June 16, 2006, 10:11:45 pm ---Question : how do I create a screenshot of the active window/application ??

--- End quote ---
You can use ksnapshot. It provides three or four options what to get on the screenshot.

EDIT: It should be, if installed, under Utilities/Desktop in the K-menu
EDIT2: It's part of the kdegraphics3 package ;)

Der Meister:

--- Quote from: byo on June 16, 2006, 09:34:56 pm ---And bugs with keyboard handling on linux may be caused by unusual keyboard processing. I use ::wxGetKeyState() for arrows which should work fine. But processing is started fomr EVT_CHAR event and here may be the problem. In windows wxWANTS_CHARS flag had to be added to process extra keys. wxGTK may be incompatible with wxMSW here. Does anyone have any experience with processing Char/Key events for arrow keys ? (I tried EVT_KEY_DOWN but it seemed not to process extra keys or use internal system key codes, but it may also be my bug becuase it was 2.00 AM ;))

--- End quote ---
I don't think that the keyboard processing is the problem. I just replaced the wxGetKeyState calls by a call to event.GetKeyCode() and used the keys A, S, D and W for navigation instead of the arrow keys. Nothing changed - the game respondes to the key P but not the others. As the way the keycode is checked was the same for alle 5 keys I don't think that the keyboard processing causes the problems. Anyway, I don't know what it is yet, too...
After more investigation I found out that wxGetKeyState doesn't work on Linux. I have no idea why but this seems to be the problem.
This is not difficult to solve in byoCBTrisContent::OnChar because wxGetKeyState(WXK_UP) can be replaced by event.GetKeyCode() == WXK_UP and so on - this works. But the real problem exists in byoCBTrisContent::UpdateChunkPos: How could these call to wxGetKeyState be replaced?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version