Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 27, 2020, 13:11   #31
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
Great!

I did some reading about ncurses input this morning. I think it's possible to update Term_xtra_gcu_event() to behave a little more like how the other ports handle input. You just need to explicitly map all of the ncurses key codes to Angband key codes.

The catch is that the key codes are dependent on the terminal emulator (for example, some return the same key code for <Right_Arrow> and <Shift><Right_Arrow>), but my understanding is that most modern terminal emulators behave similarly. You could keep the existing, odd behavior, for older terminals and use the new mappings for newer ones.

A side effect of changing the GCU key code mappings to behave like the other ports is that it may break some players' custom mappings. For example:

Input: <Shift><Right_Arrow>
Current GCU passes to Angband: \xb5
After fix: {S}[Right]
moosferatu is offline   Reply With Quote
Old March 27, 2020, 14:30   #32
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,271
Grotug is on a distinguished road
I'm pretty happy with how things are now; shift-ctrl is easy to adapt to vs just using ctrl for alter actions.

I think you may have mentioned earlier that there was a problem with the target action in Angband, but I only just noticed it now: I cannot target any square using the trackpad click. Angband is not recognizing that as a keypress at all. :-/ I tried to map the click of the trackpad but it didn't acknowledge any input. I can only target using *. Is there any workaround for this? I have an external mouse I could attach but it's at my house and I'm quarantining in another house right now.
__________________
Detailed account of my Ironman win here.
Grotug is offline   Reply With Quote
Old March 27, 2020, 14:31   #33
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
No, there is no mouse support.
moosferatu is offline   Reply With Quote
Old March 27, 2020, 17:14   #34
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,271
Grotug is on a distinguished road
I discovered how to target using the 'o' key. This is actually preferable to using the mouse. So looks like I'm all set! Thanks again for all your patience and help Moosferatu.
__________________
Detailed account of my Ironman win here.
Grotug 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
[BUG] [SANGBAND 1.0.2] [Win10] Game crashes when entering Left Panel screen Bucolic Verdancy Variants 0 November 2, 2018 06:37
Recording PosChengband with Win10's Game Bar (Win+G) HugoTheGreat2011 Idle chatter 1 July 20, 2016 14:09
Reviving Iso-Angband, an isometric view addon for Angband Hajo Development 111 August 3, 2014 19:44


All times are GMT +1. The time now is 16:41.


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