Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11keyboard.c @ 2825:620a91b6d263
Date: Tue, 02 Dec 2008 23:38:26 +0100
From: Couriersud
Subject: Re: SDL: Keyboard layout unknown
I have attached a diff which will add an additional keyboard layout to
the x11 driver. The issue arose, when I moved to ubuntu intrepid. I was
only able to map the keys available on my keyboard. The differences to
the existing keyboard was the mapping of HOME,UP,DOWN and some other
keys.
Now only one issue remains. Dead keys (e.g. ^, ` ') on european
keyboards do not generate a "scancode" event. Just a text event when the
key is composed (e.g. ?? ?? ??).
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 03 Dec 2008 04:32:24 +0000 |
parents | 4ac07ae446d3 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2824:4dba7aa7ea77 | 2825:620a91b6d263 |
---|---|
283 SDL_scancode *table; | 283 SDL_scancode *table; |
284 int table_size; | 284 int table_size; |
285 } scancode_set[] = { | 285 } scancode_set[] = { |
286 { darwin_scancode_table, SDL_arraysize(darwin_scancode_table) }, | 286 { darwin_scancode_table, SDL_arraysize(darwin_scancode_table) }, |
287 { xfree86_scancode_table, SDL_arraysize(xfree86_scancode_table) }, | 287 { xfree86_scancode_table, SDL_arraysize(xfree86_scancode_table) }, |
288 { xfree86_scancode_table2, SDL_arraysize(xfree86_scancode_table2) }, | |
288 }; | 289 }; |
289 /* *INDENT-OFF* */ | 290 /* *INDENT-OFF* */ |
290 | 291 |
291 int | 292 int |
292 X11_InitKeyboard(_THIS) | 293 X11_InitKeyboard(_THIS) |