It is currently Fri Jan 15, 2021 6:24 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: KeyboardInkey() doesn't return unicode
PostPosted: Wed Nov 18, 2020 11:30 pm 
Offline
New User
New User

Joined: Mon May 07, 2018 9:58 am
Posts: 5
Hi all

Example:
Code:
If InitSprite() = 0 Or InitKeyboard() = 0
  MessageRequester("Header Error", "Can't open DirectX 7 or later", 0)
  End
EndIf
If OpenWindow(0,0,0,300,200, "bug test",#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered)
 
  If OpenWindowedScreen(WindowID(0),0, 0, 300,200,0,0,0 )
    noquit=1
    While noquit
      we.l=WaitWindowEvent()
      ExamineKeyboard()
      If KeyboardPushed(#PB_Key_Escape)
        noquit=0
      EndIf
      key.s=KeyboardInkey()
      If key<>""
        Debug "Key: " + key +" ("+Asc(key)+")"
      EndIf
      Delay(1)
    Wend
  EndIf
EndIf
End


It is easy to check by adding, for example, a Russian layout and open the "on-screen keyboard"
Image Image
the work of the KeyboardInkey () function also affects the work of other 3d gadgets, where input in other languages is required


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye