#gemrb@irc.freenode.net logs for 3 Jun 2012 (GMT)

Archive Today Yesterday Tomorrow
GemRB homepage


[03:14:15] <-- PixelScum has left IRC (Ping timeout: 265 seconds)
[03:18:10] --> Drakkar has joined #gemrb
[07:58:07] --> lynxlynxlynx has joined #gemrb
[07:58:07] <-- lynxlynxlynx has left IRC (Changing host)
[07:58:07] --> lynxlynxlynx has joined #gemrb
[07:58:07] --- ChanServ gives channel operator status to lynxlynxlynx
[10:01:10] --> Beholder has joined #gemrb
[10:01:18] <Beholder> hi
[10:31:19] <CIA-33> GemRB: 03avenger_teambg * ra45d1229932f 10gemrb/gemrb/plugins/FXOpcodes/FXOpcodes.cpp: removed some debug print
[10:31:29] <CIA-33> GemRB: 03avenger_teambg * r462d177d5c0b 10gemrb/gemrb/ (7 files in 5 dirs): configurable xp/damage adjustments per difficulty level, added nightmare mode handling
[11:19:54] <lynxlynxlynx> uff, half less xp sounds radical
[11:20:05] <lynxlynxlynx> easy would be harder than normal
[11:21:02] <Beholder> lynx, i see you fully rewrite event handling
[11:21:40] <Beholder> no one handlers calls in android
[11:23:29] <Beholder> SDL20VideoDriver::ProcessEvent not calls and SDLVideoDriver::ProcessEvent not calls
[11:25:15] <Beholder> where are the selection code for drivers and handlers?
[11:26:02] <lynxlynxlynx> best to ask brad_a about it
[11:26:34] <lynxlynxlynx> from what i remember SDLVideoDriver now holds the shared code, while SDL20VideoDriver and SDL12VideoDriver have the specifics
[11:31:43] <Beholder> but i do not see how it select the handler
[11:33:38] <lynxlynxlynx> i think you're not supposed to build both drivers and then the choice is automatic
[11:38:09] <Beholder> SDL_PollEvent calls only in SDLVideoDriver
[11:38:51] <Beholder> in SDLVideoDriver::PollEvents()
[11:39:17] <Beholder> I add some log output to this method
[11:39:24] <Beholder> but see nothing
[11:45:39] <lynxlynxlynx> you're trying with 1.2?
[11:45:58] <Beholder> with 2.0
[11:46:08] <Beholder> official
[11:47:50] <lynxlynxlynx> i don't see how you could not run into that function
[11:48:35] <lynxlynxlynx> it's even called by main through swapbuffers
[11:52:04] <Beholder> 20 SwapBuffers?
[11:53:37] <lynxlynxlynx> well the general one, but it's virtual, so sdl20's is used
[11:54:01] <Beholder> ah, 20 calls SwapBuffers from SDLVideoDriver directly
[11:55:09] <Beholder> I'll add log output to swapbuffers
[12:02:48] <Beholder> no output, odd
[12:08:51] --> Yoshimo has joined #gemrb
[12:10:05] <lynxlynxlynx> are you sure you're running the code you just modified? :)
[12:12:45] <Beholder> I see log not refreshed while video is playing
[12:13:08] <Beholder> after i get all)
[12:14:09] <Beholder> well, I receive finger events, but why Brad's code not work for me
[13:03:23] <Beholder> I found the cause of bug
[13:03:56] <Beholder> xScaleFactor = (state->xres / w);
[13:03:56] <Beholder> yScaleFactor = (state->yres / h);
[13:04:36] <Beholder> With fingerup event this coordinates are invalid
[13:05:26] <Beholder> i dont know why(
[13:07:57] <lynxlynxlynx> cleared, random or something else?
[13:11:21] <Beholder> random
[13:13:16] <lynxlynxlynx> :(
[13:16:48] --> sandsower has joined #gemrb
[13:38:22] <-- sandsower has left IRC (Quit: Page closed)
[13:41:00] <Beholder> Damn, I don't know why code does not work
[13:41:21] <Beholder> I receive a proper screen coordinates now
[13:41:32] <Beholder> mouse up is called
[13:41:43] <Beholder> but no action(
[13:42:19] <Beholder> EvntManager->MouseUp((int)(event.tfinger.x / xScaleFactor) + xOffset, (int)(event.tfinger.y / yScaleFactor) + yOffset, mouseButton, GetModState(SDL_GetModState()) );
[13:43:15] <Beholder> mouseButton is a GEM_ACTION
[13:43:29] <Beholder> GEM_MB_ACTION
[13:43:50] <Beholder> I don't know why(
[14:12:39] <Beholder> it's proper that cursor not displayed?
[14:13:11] <lynxlynxlynx> it was done on purpose
[14:13:35] <lynxlynxlynx> but we didn't have much feedback about it
[14:17:54] <Beholder> Waiting for Brad, don't know what to do
[14:20:34] <Beholder> heh, before his modifications touchscreen worked fine in sdl 1.3
[14:24:48] <lynxlynxlynx> i think he separated mouse and touch input separately
[14:25:05] <tomprince> My understanding is, that on iOS, touch events also triggered mouse events.
[14:25:14] <lynxlynxlynx> he should be back next week, currently probably pissed drunk
[14:25:41] <Beholder> i know, android receive only touch events
[14:26:00] <Beholder> and i handle it!
[14:26:22] <Beholder> but calling EvntManager->MouseUp((int)(event.tfinger.x / xScaleFactor) + xOffset, (int)(event.tfinger.y / yScaleFactor) + yOffset, mouseButton, GetModState(SDL_GetModState()) ); does nothing
[14:26:39] <Beholder> all arguments are correct
[14:34:52] <-- Beholder has left #gemrb
[19:01:14] --> kingron has joined #gemrb
[20:34:55] <-- kingron has left IRC (Quit: Leaving)
[21:15:51] <-- Yoshimo has left IRC (Quit: Yoshimo)
[22:19:14] <-- lynxlynxlynx has left IRC (Remote host closed the connection)
[23:49:26] <-- alexander__b has left IRC (Ping timeout: 244 seconds)
[23:52:10] --> alexander__b has joined #gemrb