Jump to content

Adding in-game shortcuts? PST.


mthmob

Recommended Posts

Hi and first of all thx for this great project :suspect: it has enabled me to play bg2 on my phone.

 

Small problem i ran into however, since im on a phone (N900), i can't right click with mouse. And since gemrb dosent have f.ex. "A" for attack shortcut in Planescape Torment, i cant even get out of the first room, when starting the game :laugh:

 

So is there any easy way to add such a shortcut?

Link to comment

Isn't there an attack button on the gui?

 

Anyway, i guess you got the source, just look at GameControl.cpp

 

Go to near line 1000, where you see a series of switch/cases.

Add the following case:

case 'a':

target_mode = TARGET_MODE_ATTACK;

break;

 

This will assign the 'a' key to change the cursor to attack mode. Untested, crude, probably needs more checks, but should work.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...