Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 14, 2013, 15:25   #1
molybdenum
Apprentice
 
Join Date: May 2013
Posts: 84
molybdenum is on a distinguished road
OS X (#880/#1460): Broken Commands

For 880 and 1460, I've created a workaround that should make the game playable for non-US keyboards. It's not a true fix; I tried a bunch of different ways and there really isn't a good way to do it properly. I'm just sending keyboard events from menu items.

1. I added items for '~', '[', ']', '{', and '}', since those were the only keys that were reported as not working. Are there any others that should be added? I could just add a whole bunch for all of the non-alphanumeric commands, just to be safe.

2. Since I'm just sending a key press, I'll invoke a keymap if the user has defined one. What is the best way to send the underlying command to Angband? I've tried a different few things, but there are all sorts of weird side effects.
molybdenum is offline   Reply With Quote
Old July 15, 2013, 06:34   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,909
Donated: $40
Pete Mack is on a distinguished road
Keymaps are the traditional right way to do this, but since I don't own a mac, let alone a mac with international keyboard, I can't help you here, except to point out that keymaps belong in the lib/prefs directory....
Pete Mack is offline   Reply With Quote
Old July 15, 2013, 21:27   #3
molybdenum
Apprentice
 
Join Date: May 2013
Posts: 84
molybdenum is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Keymaps are the traditional right way to do this, but since I don't own a mac, let alone a mac with international keyboard, I can't help you here, except to point out that keymaps belong in the lib/prefs directory....
Yeah, I assume that players will eventually set up keymaps for that. I'm thinking that this fix is for new players who don't have keymaps and wonder why ~ doesn't bring up knowledge on their non-US keyboard. But, your response somehow made me remember the \ command, so thanks!
molybdenum is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug commands buzzkill Development 14 August 29, 2012 10:06
Learning the commands caruso Vanilla 40 May 10, 2011 07:41
bug with autorepeat commands PowerDiver Vanilla 3 December 18, 2010 19:26
Unangband debug commands? Donald Jonker Variants 3 March 5, 2009 03:08
Redundant commands Zero Vanilla 7 January 9, 2008 23:01


All times are GMT +1. The time now is 10:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.