Language specific keyboards

Hi i have trouble with Estonian keyboard.

There are 6 button on my keyboard that the below code does not catch.

  1. the key left from nr 1(on us kb `), if i double click it:ˇˇ
    2.the key left from backspace(on us kb =), if i double click it:´´
    3.4 keys left from enter(on us kb [];’), if i click them:üõöä

Hjelp :slight_smile:

A link to see how an estonian kb look by layout(PS did not work with firefox for me, so IE for win):

import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject

class In(DirectObject):
    def __init__(self):

        self.accept('bdown', self.buttons,[True])
        self.accept('bup', self.buttons,[False])
    def buttons(self,but,tag):
        print but,tag



Yes, this is a known issue. There is a fix on the cvs trunk (which will be part of the 1.7 release) that allows all keys to generate a button event.

You can probably catch the keystroke event that is generated today, though. Use base.buttonThrowers[0].node().setKeystrokeEvent().