Problem with keys

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

Kaks wrote:
Looking at the US layout, there is actually no key corresponding to your keyboard's "#" so I'm afraid you're momentarily out of luck there. It's entirely possible that "#" was added as a purely windows hack, so we might be able to transfer that bit of the code to linux.

However, "/" is in exactly the same position in both layouts, so I've no idea why it's not working, will try to investigate & report back...
ty much apreciated.

Code: Select all

{
	key_roll_left				= 253;		// left arrow
	key_roll_right				= 252;		// right arrow
	key_pitch_forward			= 255;		// up arrow
	key_pitch_back				= 254;		// down arrow
	key_yaw_left				= "a";
	key_yaw_right				= "d";

	key_increase_speed			= "w";
	key_decrease_speed			= "s";
	key_inject_fuel				= "x";

	key_fire_lasers				= "q";
	key_launch_missile			= "m";
	key_next_missile			= "y";
	key_ecm					= "e";

	key_target_missile			= "t";
	key_untarget_missile			= "u";
	key_ident_system			= "r";

	key_scanner_zoom			= "z";
	key_scanner_unzoom			= "Z";

	key_launch_escapepod			= 27;		// escape
	key_energy_bomb				= "\t";		// tab

	key_galactic_hyperspace			= "g";
	key_hyperspace				= "h";
	key_jumpdrive				= "j";

	key_dump_cargo				= "/";
	key_rotate_cargo			= "R";

	key_autopilot				= "n";
	key_autopilot_target			= "N";
	key_autodock				= "l";
	key_docking_clearance_request		= "L";

	key_snapshot				= "*";
	key_docking_music			= "";

	key_advanced_nav_array			= "^";
	key_map_home				= 302;		// Home
	key_map_info				= "i";

	key_pausebutton				= "p";
	key_show_fps				= "F";
	key_mouse_control			= "M";

	key_comms_log				= "`";
	key_next_compass_mode			= "#";
	
	key_cloaking_device			= "0";

	key_contract_info			= "?";

	key_next_target				= "+";
	key_previous_target			= "-";

	key_custom_view				= "v";

	key_dump_target_state			= "H";
}
I use "w" to speed up "s" to slow "a" + "d" left and right yaw so quite alot of my keyboard is taken up with other events aswell. So any few keys that are left are not in desirable locations.
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
Post Reply