Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

weroes

2
Posts
1
Topics
A member registered Nov 03, 2019

Recent community posts

(1 edit)

I filed an issue https://github.com/DragonRuby/dragonruby-game-toolkit-contrib/issues/12 for investigating a more stable way of identifying the key.

The console does not work out of the box for Danish keyboards. Here's how you make it work:

1. Follow the instructions https://github.com/DragonRuby/dragonruby-game-toolkit-contrib  to embed a copy of the contrib inside your game/app folder.

2. Edit `dragonruby-game-toolkit-contrib/dragon/console.rb`. At line 215, change the  `console_toggle_key_down?` method to:

    def console_toggle_key_down? args
      return args.inputs.keyboard.key_down.less_than! ||
             args.inputs.keyboard.key_down.backtick! ||
             args.inputs.keyboard.key_down.superscript_two! ||
             args.inputs.keyboard.key_down.section_sign! ||
             args.inputs.keyboard.key_down.ordinal_indicator!
    end

Now you can open the console using "the key to the left of the 1".

For some reason that key's raw value is not 10 but 60 (even though the mac app "Key Codes" reports it as 10. The plot thickens...)