RE: Exclamation Point in DirectInput Key List

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mostly guessing, I've never used code pages, but instead of writing 
something like this..
char = DIK_KEY+'A'

You would do something like this..
code_page = codepages[COUNTRY_CODE]
char = code_page[DIK_KEY]

Or are code pages ascii based?

Igor, or others, would know better than I.

Chris


Martin Stachon wrote:
> Chir wrote:
> > DirectInput only maps the keyboard, not every possible keystroke. There
> > are no DIK_KEY constants for masked keystrokes. DIK_ESCAPE simply refers
> > to the very top-left button on the keyboard, DIK_1 refers to the second
> > button on the second row. Etc..
> >
> > You don't have to use DInput for keyboard handling though.
> > I didn't document it, but if you look in exoticaX.ew, you will find a
> > couple of routines for Windows keyboard handling. I use them in
> > guiX_dlg.ew for the edit controls.
> > Actually, I believe windows handles keystrokes the same way, but it's
> > alot more versatile.
> > I think you would encounter the same problem.
> 
> For example, in Need for Speed 2, when I press [SHIFT] + [ยง] (on English 
> keyboard =
> [SHIFT] + ['] )
> it correctly reports it as [!] , on english keyboard this would be ["]
> 
> Maybe it uses API to get known the correct keycodes and then DInput?
> 
>     Martin
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu