SFML community forums

Help => General => Topic started by: Predator106 on November 01, 2012, 03:07:06 am

Title: Handling lowercase tilde? (`) accent key?
Post by: Predator106 on November 01, 2012, 03:07:06 am
I can't find any handling for: the ` key, to the left of the 1 which contains Tilde as well on a US keyboard.

http://www.sfml-dev.org/documentation/2.0/classsf_1_1Keyboard.php#acb4cacd7cc5802dec45724cf3314a142a401a183dcfde0a06cb60fe6c91fa1e39

I guess it's called the accent key. Is this not available in the API?
Title: Re: Handling lowercase tilde? (`) accent key?
Post by: cire on November 01, 2012, 04:09:10 am
In the same way that the Add key is not called the "Equal" key, the Tilde key is not called the "Accent" key.  You only need one way to refer to a key.
Title: Re: Handling lowercase tilde? (`) accent key?
Post by: JayArby on November 02, 2012, 04:17:54 am
in other words, use Tilde and check to see if shift was held.