Oolite Bulletins

For information and discussion about Oolite.
It is currently Sat Jul 22, 2017 8:48 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Oct 21, 2016 10:45 am 
Offline
Average
Average

Joined: Fri Oct 21, 2016 10:00 am
Posts: 11
From many searches I gather that I was not the only one to be confused and bewildered by the unmentionable link to a table of keycodes found on the wiki.

Here I'm offering my current understanding of what one can actually customize, and which codes to use for that:
Code:
/*
  from the source, luke!
  https://github.com/OoliteProject/oolite/blob/master/src/SDL/MyOpenGLView.h

  codes for the 10 keys left of numpad: 
  
  252; // gvArrowKeyRight
  253; // gvArrowKeyLeft
  254; // gvArrowKeyDown
  255; // gvArrowKeyUp
  
  303; // gvHomeKey
  304; // gvEndKey
  305; // gvInsertKey
  306; // gvDeleteKey
  307; // gvPageUpKey
  308; // gvPageDownKey
  .
  .

  numberpad special keys are not listed in /recognized by the code at all. below are the codes for the number keys on the numpad:

  310; // gvNumberPadKey0
  311; // gvNumberPadKey1
  312; // gvNumberPadKey2
  313; // gvNumberPadKey3
  314; // gvNumberPadKey4
  315; // gvNumberPadKey5
  316; // gvNumberPadKey6
  317; // gvNumberPadKey7
  318; // gvNumberPadKey8
  319; // gvNumberPadKey9

  ignoring the function keys, anything left of the backspace key can be assigned by quoting the key, no funny business with codes required there.

  one can not customize 
the Ctrl-key, to, say, turn it into '`' or '\' or another shift key.
also 'Caps-lock' as a switch to make custom views zoomable. 
  
*/


Top
   
PostPosted: Sun Oct 23, 2016 6:03 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6178
Location: Aboard the Pitviper S.E. "Blackwidow"
Good suggestion.. thanks!


Done.
http://wiki.alioth.net/index.php/Oolite ... ic_Keypads

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
PostPosted: Mon Jan 09, 2017 5:52 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Fri Feb 01, 2013 7:44 am
Posts: 265
Location: Indian Hills, Nevada, USA
Here's a question: Is it possible to enter two values for an argument in the keyconfig.plist? For example, if I want to add the NumPad0 as the Weapons Toggle but not get rid of the default Underscore command (in case I forget that I changed the value in the heat of the moment)...

Can I use a comma in the argument, i.e. key_weapons_online_toggle = "_",310 ?
or enter both values without a comma separator?

I guess I can experiment and see what happens...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited