code logs -> 2009 -> Fri, 02 Jan 2009< code.20090101.log - code.20090103.log >
--- Log opened Fri Jan 02 00:00:45 2009
02:07 You're now known as TheWatcher[t-2]
02:09 You're now known as TheWatcher[zZzZ]
04:17 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
05:42 Pinkhair [~none@Nightstar-7066.dyn.optonline.net] has quit [Ping Timeout]
05:53 ASCII [~none@Nightstar-7066.dyn.optonline.net] has joined #code
07:23 Vornicus is now known as Vornicus-Latens
07:23 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Quit: ]
--- Log closed Fri Jan 02 07:49:14 2009
--- Log opened Fri Jan 02 10:09:19 2009
10:09 TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
10:09 Irssi: #code: Total of 18 nicks [11 ops, 0 halfops, 0 voices, 7 normal]
10:09 mode/#code [+o TheWatcher[zZzZ]] by ChanServ
--- Log closed Fri Jan 02 10:11:09 2009
--- Log opened Fri Jan 02 10:11:20 2009
10:11 chris [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
10:11 Irssi: #code: Total of 19 nicks [12 ops, 0 halfops, 0 voices, 7 normal]
10:11 You're now known as TheWatcher
10:12 Irssi: Join to #code was synced in 60 secs
10:12 TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has quit [Ping Timeout]
10:33 Syloqs-AFH [~Syloq@Admin.Nightstar.Net] has quit [Ping Timeout]
12:27 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout]
13:40 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
13:40 mode/#code [+o Reiver] by ChanServ
13:46 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout]
13:52 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
13:52 mode/#code [+o Reiver] by ChanServ
17:08 You're now known as TheWatcher[afk]
18:07 * AnnoDomini mumbles. How do I make SDL pay attention to the OS's keyboard layout?
18:11
< simontwo>
AnnoDomini, does SDL_GetKeyName() not do that?
18:14
<@AnnoDomini>
Er, that's not what I mean. I have me here a copy of SDL-using Dwarf Fortress, and I want it to take the keys from the OS's layout, not from the base assumption that I'm using QWERTY.
18:29
<@GeekSoldier>
ah, I just adjusted to my keymap in wetware. But I'm using dvorak, and I presume that you are using a polish layout, so that is not quite so feasible.
18:41
<@AnnoDomini>
I'm using Dvorak.
18:42
<@AnnoDomini>
I'm also on WinXP.
18:42
<@GeekSoldier>
Oh
18:43
<@AnnoDomini>
Where DOES SDL get its input information from?
18:47 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
19:03 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
19:03 mode/#code [+o ToxicFrog] by ChanServ
19:04
<@AnnoDomini>
I mean, it must get its information from somewhere, and I'm pretty sure it doesn't just assume "you're using QWERTY" baselessly.
19:50 You're now known as TheWatcher
20:03 AnnoDomini [~farkoff@Nightstar-29010.neoplus.adsl.tpnet.pl] has quit [Quit: Rebooting.]
20:10 AnnoDomini [~farkoff@Nightstar-29010.neoplus.adsl.tpnet.pl] has joined #Code
20:10 mode/#code [+o AnnoDomini] by ChanServ
20:39 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has joined #code
20:57 Vornicus-Latens is now known as Vornicus
21:44
<@McM[SanDiego]>
AnnoDomini: Actually, I think it does, at least if you go by scancode.
21:45
<@McM[SanDiego]>
Raw keyboard information is essentially coordinates on a grid (the "scancode"), which is then translated by the OS into the actual key through the keymap.
21:45
<@McM[SanDiego]>
If you use the SDLk_whatever constants, those are by scancode, using QWERTY and possibly US-101 specifically.
21:46
<@McM[SanDiego]>
If you're writing your own stuff and want to go through the keymap, I believe you instead enable Unicode and check that value instead of the keysym.
21:46
<@McM[SanDiego]>
But as I don't have foreign keyboards to test on, this is in some sense guesswork.
21:46
<@McM[SanDiego]>
But the key events have the symbol, the raw scancode, *and* the Unicode, I think.
21:46
<@McM[SanDiego]>
And Unicode has to be turned on
21:48
<@ToxicFrog>
And DF probably just goes by scancode.
21:49
<@McM[SanDiego]>
Reading the doc wiki, it implies that even turning Unicode on might not be good enough in all cases.
21:49
<@McM[SanDiego]>
Since under "notes" for the SDL_keysym struct it says "It would be nice to not have to manage our own keymaps."
21:50
<@McM[SanDiego]>
http://www.libsdl.org/cgi/docwiki.cgi/SDL_keysym
21:50
<@McM[SanDiego]>
Also, http://www.libsdl.org/cgi/docwiki.cgi/SDL_EnableUNICODE
21:50
<@McM[SanDiego]>
If you've got Dvorak, I'd experiment with that first.
21:51
<@McM[SanDiego]>
(And it's raw 'virtual key symbol', not raw scancode, idly; Target Acquired used those and I know the cheat codes didn't work out so well with Dvorak)
22:17
<@AnnoDomini>
Uhuh.
22:17
<@AnnoDomini>
So unless I somehow manage to alter the scancodes the system is getting from the keyboard, there's no hope.
22:18
<@McM[SanDiego]>
Pretty much, since DF stays closed.
22:49 * McM[SanDiego] prods UQM a little.
22:51
<@McM[SanDiego]>
Unfortunately, compilation on battery is a bad move.
23:09
< Vornicus>
Yes
23:15 AnnoDomini [~farkoff@Nightstar-29010.neoplus.adsl.tpnet.pl] has quit [Quit: The purpose of writing is to inflate weak ideas, obscure poor reasoning, and inhibit clarity.]
--- Log closed Sat Jan 03 00:00:57 2009
code logs -> 2009 -> Fri, 02 Jan 2009< code.20090101.log - code.20090103.log >