Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

Can't get the console to show up with french keyboard layout on Linux.

A topic by jujule created Sep 05, 2019 Views: 530 Replies: 2
Viewing posts 1 to 2
(1 edit)

Hi,

I just bought DragonRuby and tried it on my Win/Linux box using a French keyboard. I can get the console to show up only on Windows, nothing pops up under Linux. I use exactly the same keyboard with both OSs. Any idea where the problem might come from ?

Just in case, here is the French keyboard layout :


Thanks.

-jujule

Developer

Hmm... it's really odd that it's only on Linux that it doesn't work on.

Would you mind trying this patch and tell me what it returns?

At the top of `main.rb`:

module GTK
  class KeyboardKeys
    def self.utf_8_char raw_key
      puts "==== yay linux!"
      puts raw_key
      puts "======"
      return raw_key.chr
    end
  end
end

I'm super sorry. While typing the code, I just thought about checking the keyboard settings ( should have done that first ! ) and for whatever reason, it was set on an obsolete French variant. Setting it back to the regular setting solved the problem.

Thank you for your quick answer !

- jujule