Tuesday, March 23, 2010

key.isdown

in the key.isdownfunction... i know for the south key its
DOWN... but what do u use for the letter keys. eg. A, W...key.isdown




ac online wrote:

%26gt; in the key.isdownfunction... i know for the south key
its DOWN... but what do u use for the letter keys. eg. A, W...



It has to go with Key.getCode() and use appropriate code for
the A and W keys.

A = 65

W = 87



For example CTRL A



if (Key.isDown(Key.CONTROL) %26amp;%26amp; Key.getCode() == 65) {



--

Best Regards



Urami





--



Beauty is in the eye of the beer holder...





%26lt;urami%26gt;

If you want to mail me - DO NOT LAUGH AT MY ADDRESS

%26lt;/urami%26gt;

No comments:

Post a Comment