540 lines
44 KiB
HTML
540 lines
44 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>SFML - Simple and Fast Multimedia Library</title>
|
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
|
<meta charset="utf-8"/>
|
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
|
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="banner-container">
|
|
<div id="banner">
|
|
<span id="sfml">SFML 2.5.1</span>
|
|
</div>
|
|
</div>
|
|
<div id="content">
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><b>sf</b></li><li class="navelem"><a class="el" href="classsf_1_1Keyboard.html">Keyboard</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="classsf_1_1Keyboard-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">sf::Keyboard Class Reference<div class="ingroups"><a class="el" href="group__window.html">Window module</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Give access to the real-time state of the keyboard.
|
|
<a href="classsf_1_1Keyboard.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="Keyboard_8hpp_source.html">Keyboard.hpp</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:acb4cacd7cc5802dec45724cf3314a142"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142">Key</a> { <br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a840c43fa8e05ff854f6fe9a86c7c939e">Unknown</a> = -1,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a9d06fa7ac9af597034ea724fb08b991e">A</a> = 0,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aca3142235e5c4199f0b8b45d8368ef94">B</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a0d586c4ec0cd6b537cb6f49180fedecc">C</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ae778600bd3e878b59df1dbdd5877ba7a">D</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a0e027c08438a8bf77e2e1e5d5d75bd84">E</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab8021fbbe5483bc98f124df6f7090002">F</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aafb9e3d7679d88d86afc608d79c251f7">G</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142adfa19328304890e17f4a3f4263eed04d">H</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142abaef09665b4d94ebbed50345cab3981e">I</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a948c634009beacdab42c3419253a5e85">J</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a25beb62393ff666a4bec18ea2a66f3f2">K</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a5ef1839ffe19b7e9c24f2ca017614ff9">L</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a9718de9940f723c956587dcb90450a0a">M</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab652ed6b308db95a74dc4ff5229ac9c8">N</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a7739288cc628dfa8c50ba712be7c03e1">O</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aaeac1db209a64a0221277a835de986e6">P</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a27e3d50587c9789d2592d275d22fbada">Q</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142add852cadaa6fff2d982bbab3551c31d0">R</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aca13014bf9ed5887d347060a0334ea5a">S</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a19f59109111fc5271d3581bcd0c43187">T</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab4f30ae34848ee934dd4f5496a8fb4a1">U</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aec9074abd2d41628d1ecdc14e1b2cd96">V</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a258aa89e9c6c9aad1ccbaeb41839c5e0">W</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a012f5ee9d518e9e24caa087fbddc0594">X</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a5d877e63d1353e0fc0a0757a87a7bd0e">Y</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a4e12efd6478a2d174264f29b0b41ab43">Z</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af026fd133ee93a0bd8c70762cc3be4bc">Num0</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a506bd962cab80722a8c5a4b178912c59">Num1</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a2d6eb5118179bb140fdb3485bb08c182">Num2</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aee78e5ed27d31598fc285400166c0dd5">Num3</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a5fbd8a089460dc33c22f68b36e1fdc98">Num4</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a1dc7e87810b8d4b7039e202b0adcc4ee">Num5</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af86dafb69d922ad2b0f4bd4c37696575">Num6</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a8fa0056a0a6f5a7d9fcef3402c9c916d">Num7</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142adb9f2549fd57bfd99d4713ff1845c530">Num8</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a9bc0d0727958bef97e2b6a58e23743db">Num9</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a64b7ecb543c5d03bec8383dde123c95d">Escape</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142acc76c9dec76d8ae806ae9d6515066e53">LControl</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a270db49f76cb4dbe72da36153d3aa45c">LShift</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a000ecf5145296d7d52b6871c54e6718d">LAlt</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a718171426307a0f5f26b4ae82a322b24">LSystem</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a275d3fd207a9c0b22ce404012c71dc17">RControl</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a5be69e3b2f25bd5f4eed75d063f42b90">RShift</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a21dcf098233296462bc7c632b93369cc">RAlt</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac1b3fd7424feeda242cedbb64f3f5a7f">RSystem</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a4aac50ce7c4923f96323fe84d592b139">Menu</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142afbe21cad5f264d685cf7f25060004184">LBracket</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a578253a70b48e61830aa08292d44680f">RBracket</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab50635b9c913837d1bd4453eec7cb506">Semicolon</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab7374f48cc79e3085739160b8e3ef2f9">Comma</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac72ba959ab1946957e8dfd4f81ea811d">Period</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af031edb6bcf319734a6664388958c475">Quote</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a7424bf901434a587a6c202c423e6786c">Slash</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142adbd7d6f90a1009e91acf7bb1dc068512">Backslash</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a90be0882086bccb516e3afc5c7fb82eb">Tilde</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ae55c35f6b6417e1dbbfa351c64dfc743">Equal</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a5bde2cf47e6182e6f45d0d2197223c35">Hyphen</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a6fdaa93b6b8d1a2b73bc239e9ada94ef">Space</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a59e26db0965305492875d7da68f6a990">Enter</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aa7c1581bac0f20164512572e6c60e98e">Backspace</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a20c552c39c8356b1078f1cfff7936b4a">Tab</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aa24fe33bba1c3639c3aeaa317bd89d7e">PageUp</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a21c73323d9a8b6017f3bac0cb8c8ac1a">PageDown</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a4478343b2b7efc310f995fd4251a264d">End</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af41ae7c3927cc5ea8b43ee2fefe890e8">Home</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a616c8cae362d229155c5c6e10b969943">Insert</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab66187002fc7f6695ef3d05237b93a38">Delete</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a158c586cbe8609031d1a7932e1a8dba2">Add</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a68983f67bd30d27b27c90d6794c78aa2">Subtract</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a10623ae71db8a6b5d97189fc21fb91ae">Multiply</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142afae3dc28752954f0bfe298ac52f58cb6">Divide</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac3fe5df11d15b57317c053a2ae13d9a9">Left</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a2aeb083dea103a8e36b6850b51ef3632">Right</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac4cf6ef2d2632445e9e26c8f2b70e82d">Up</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a33dd676edbdf0817d7a65b21df3d0dca">Down</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af0b2af83a7a8c358f7b8f7c403089a4e">Numpad0</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a03536d369ae55cc18024f7e4a341a5ac">Numpad1</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a8ad9ccf62631d583f44f06aebd662093">Numpad2</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ab63ae26e90126b1842bde25d6dedb205">Numpad3</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a65336d823bd823a0d246a872ff90e08a">Numpad4</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a8bc5041f12fdfbefba1dbd823c7e1054">Numpad5</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aaf28fdf0d3da6a18030e685478e3a713">Numpad6</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a3f9bf9835d65a0df5cce2d3842a40541">Numpad7</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a25dcd4e4183ceceb3ac06c72995bae49">Numpad8</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a365eb80f54003670a78e3b850c28df21">Numpad9</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ae59c7e28858e970c9d4f0e418179b632">F1</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a6a2faa5f876a1e75f24a596b658ff413">F2</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a1fb58d66f9c0183db3e70b2b0576074e">F3</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a71311e21238cf2c0df1bbf096bba68f2">F4</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a01fd2f93eddf2887186ea91180a789a8">F5</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac756a19b31eb28cd2c35c29d8e54ea04">F6</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a060d30d36a3e08208b2bc46d0f549b6c">F7</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ade468cd27716b9c2a0d0158afa2f8621">F8</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a3c5c2342003a7191de6636b5ef44e1b9">F9</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142aec695ecf296e7084a8f7f3ec408e16ac">F10</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af9a8de90d90a7a7582269bc5c41f5afd">F11</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142af9d8807117d946de5e403bcbd4d7161d">F12</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a9e28e971941ca2900c1eea17cda50a04">F13</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a9a0327a4ef876338d5f3c34c514f190c">F14</a>,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a8949ce79077cc8bf64f4fa42bb6a2808">F15</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a95daf340fcc3d5c2846f69d184170d9b">Pause</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a93e6ffa0320fe9b2f29aec14a58be36b">KeyCount</a>,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a401a183dcfde0a06cb60fe6c91fa1e39">Dash</a> = Hyphen,
|
|
<br />
|
|
  <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a33aeaab900abcd01eebf2fcc4f6d97e2">BackSpace</a> = Backspace,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a536df84e73859aa44e11e192459470b6">BackSlash</a> = Backslash,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a460ab09a36f9ed230504b89b9815de88">SemiColon</a> = Semicolon,
|
|
<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac291de81bdee518d636bc359f2ca77de">Return</a> = Enter
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="memdesc:acb4cacd7cc5802dec45724cf3314a142"><td class="mdescLeft"> </td><td class="mdescRight">Key codes. <a href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142">More...</a><br /></td></tr>
|
|
<tr class="separator:acb4cacd7cc5802dec45724cf3314a142"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a80a04b2f53005886957f49eee3531599"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Keyboard.html#a80a04b2f53005886957f49eee3531599">isKeyPressed</a> (<a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142">Key</a> key)</td></tr>
|
|
<tr class="memdesc:a80a04b2f53005886957f49eee3531599"><td class="mdescLeft"> </td><td class="mdescRight">Check if a key is pressed. <a href="#a80a04b2f53005886957f49eee3531599">More...</a><br /></td></tr>
|
|
<tr class="separator:a80a04b2f53005886957f49eee3531599"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad61fee7e793242d444a8c5acd662fe5b"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Keyboard.html#ad61fee7e793242d444a8c5acd662fe5b">setVirtualKeyboardVisible</a> (bool visible)</td></tr>
|
|
<tr class="memdesc:ad61fee7e793242d444a8c5acd662fe5b"><td class="mdescLeft"> </td><td class="mdescRight">Show or hide the virtual keyboard. <a href="#ad61fee7e793242d444a8c5acd662fe5b">More...</a><br /></td></tr>
|
|
<tr class="separator:ad61fee7e793242d444a8c5acd662fe5b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Give access to the real-time state of the keyboard. </p>
|
|
<p><a class="el" href="classsf_1_1Keyboard.html" title="Give access to the real-time state of the keyboard. ">sf::Keyboard</a> provides an interface to the state of the keyboard.</p>
|
|
<p>It only contains static functions (a single keyboard is assumed), so it's not meant to be instantiated.</p>
|
|
<p>This class allows users to query the keyboard state at any time and directly, without having to deal with a window and its events. Compared to the KeyPressed and KeyReleased events, <a class="el" href="classsf_1_1Keyboard.html" title="Give access to the real-time state of the keyboard. ">sf::Keyboard</a> can retrieve the state of a key at any time (you don't need to store and update a boolean on your side in order to know if a key is pressed or released), and you always get the real state of the keyboard, even if keys are pressed or released when your window is out of focus and no event is triggered.</p>
|
|
<p>Usage example: </p><div class="fragment"><div class="line"><span class="keywordflow">if</span> (<a class="code" href="classsf_1_1Keyboard.html#a80a04b2f53005886957f49eee3531599">sf::Keyboard::isKeyPressed</a>(<a class="code" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142ac3fe5df11d15b57317c053a2ae13d9a9">sf::Keyboard::Left</a>))</div><div class="line">{</div><div class="line"> <span class="comment">// move left...</span></div><div class="line">}</div><div class="line"><span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classsf_1_1Keyboard.html#a80a04b2f53005886957f49eee3531599">sf::Keyboard::isKeyPressed</a>(<a class="code" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a2aeb083dea103a8e36b6850b51ef3632">sf::Keyboard::Right</a>))</div><div class="line">{</div><div class="line"> <span class="comment">// move right...</span></div><div class="line">}</div><div class="line"><span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classsf_1_1Keyboard.html#a80a04b2f53005886957f49eee3531599">sf::Keyboard::isKeyPressed</a>(<a class="code" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142a64b7ecb543c5d03bec8383dde123c95d">sf::Keyboard::Escape</a>))</div><div class="line">{</div><div class="line"> <span class="comment">// quit...</span></div><div class="line">}</div></div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Joystick.html" title="Give access to the real-time state of the joysticks. ">sf::Joystick</a>, <a class="el" href="classsf_1_1Mouse.html" title="Give access to the real-time state of the mouse. ">sf::Mouse</a>, <a class="el" href="classsf_1_1Touch.html" title="Give access to the real-time state of the touches. ">sf::Touch</a> </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Keyboard_8hpp_source.html#l00040">40</a> of file <a class="el" href="Keyboard_8hpp_source.html">Keyboard.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
|
<a id="acb4cacd7cc5802dec45724cf3314a142"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acb4cacd7cc5802dec45724cf3314a142">◆ </a></span>Key</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142">sf::Keyboard::Key</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Key codes. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a840c43fa8e05ff854f6fe9a86c7c939e"></a>Unknown </td><td class="fielddoc"><p>Unhandled key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a9d06fa7ac9af597034ea724fb08b991e"></a>A </td><td class="fielddoc"><p>The A key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aca3142235e5c4199f0b8b45d8368ef94"></a>B </td><td class="fielddoc"><p>The B key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a0d586c4ec0cd6b537cb6f49180fedecc"></a>C </td><td class="fielddoc"><p>The C key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ae778600bd3e878b59df1dbdd5877ba7a"></a>D </td><td class="fielddoc"><p>The D key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a0e027c08438a8bf77e2e1e5d5d75bd84"></a>E </td><td class="fielddoc"><p>The E key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab8021fbbe5483bc98f124df6f7090002"></a>F </td><td class="fielddoc"><p>The F key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aafb9e3d7679d88d86afc608d79c251f7"></a>G </td><td class="fielddoc"><p>The G key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142adfa19328304890e17f4a3f4263eed04d"></a>H </td><td class="fielddoc"><p>The H key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142abaef09665b4d94ebbed50345cab3981e"></a>I </td><td class="fielddoc"><p>The I key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a948c634009beacdab42c3419253a5e85"></a>J </td><td class="fielddoc"><p>The J key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a25beb62393ff666a4bec18ea2a66f3f2"></a>K </td><td class="fielddoc"><p>The K key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a5ef1839ffe19b7e9c24f2ca017614ff9"></a>L </td><td class="fielddoc"><p>The L key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a9718de9940f723c956587dcb90450a0a"></a>M </td><td class="fielddoc"><p>The M key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab652ed6b308db95a74dc4ff5229ac9c8"></a>N </td><td class="fielddoc"><p>The N key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a7739288cc628dfa8c50ba712be7c03e1"></a>O </td><td class="fielddoc"><p>The O key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aaeac1db209a64a0221277a835de986e6"></a>P </td><td class="fielddoc"><p>The P key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a27e3d50587c9789d2592d275d22fbada"></a>Q </td><td class="fielddoc"><p>The Q key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142add852cadaa6fff2d982bbab3551c31d0"></a>R </td><td class="fielddoc"><p>The R key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aca13014bf9ed5887d347060a0334ea5a"></a>S </td><td class="fielddoc"><p>The S key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a19f59109111fc5271d3581bcd0c43187"></a>T </td><td class="fielddoc"><p>The T key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab4f30ae34848ee934dd4f5496a8fb4a1"></a>U </td><td class="fielddoc"><p>The U key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aec9074abd2d41628d1ecdc14e1b2cd96"></a>V </td><td class="fielddoc"><p>The V key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a258aa89e9c6c9aad1ccbaeb41839c5e0"></a>W </td><td class="fielddoc"><p>The W key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a012f5ee9d518e9e24caa087fbddc0594"></a>X </td><td class="fielddoc"><p>The X key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a5d877e63d1353e0fc0a0757a87a7bd0e"></a>Y </td><td class="fielddoc"><p>The Y key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a4e12efd6478a2d174264f29b0b41ab43"></a>Z </td><td class="fielddoc"><p>The Z key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af026fd133ee93a0bd8c70762cc3be4bc"></a>Num0 </td><td class="fielddoc"><p>The 0 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a506bd962cab80722a8c5a4b178912c59"></a>Num1 </td><td class="fielddoc"><p>The 1 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a2d6eb5118179bb140fdb3485bb08c182"></a>Num2 </td><td class="fielddoc"><p>The 2 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aee78e5ed27d31598fc285400166c0dd5"></a>Num3 </td><td class="fielddoc"><p>The 3 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a5fbd8a089460dc33c22f68b36e1fdc98"></a>Num4 </td><td class="fielddoc"><p>The 4 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a1dc7e87810b8d4b7039e202b0adcc4ee"></a>Num5 </td><td class="fielddoc"><p>The 5 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af86dafb69d922ad2b0f4bd4c37696575"></a>Num6 </td><td class="fielddoc"><p>The 6 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a8fa0056a0a6f5a7d9fcef3402c9c916d"></a>Num7 </td><td class="fielddoc"><p>The 7 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142adb9f2549fd57bfd99d4713ff1845c530"></a>Num8 </td><td class="fielddoc"><p>The 8 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a9bc0d0727958bef97e2b6a58e23743db"></a>Num9 </td><td class="fielddoc"><p>The 9 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a64b7ecb543c5d03bec8383dde123c95d"></a>Escape </td><td class="fielddoc"><p>The Escape key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142acc76c9dec76d8ae806ae9d6515066e53"></a>LControl </td><td class="fielddoc"><p>The left Control key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a270db49f76cb4dbe72da36153d3aa45c"></a>LShift </td><td class="fielddoc"><p>The left Shift key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a000ecf5145296d7d52b6871c54e6718d"></a>LAlt </td><td class="fielddoc"><p>The left Alt key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a718171426307a0f5f26b4ae82a322b24"></a>LSystem </td><td class="fielddoc"><p>The left OS specific key: window (Windows and Linux), apple (MacOS X), ... </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a275d3fd207a9c0b22ce404012c71dc17"></a>RControl </td><td class="fielddoc"><p>The right Control key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a5be69e3b2f25bd5f4eed75d063f42b90"></a>RShift </td><td class="fielddoc"><p>The right Shift key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a21dcf098233296462bc7c632b93369cc"></a>RAlt </td><td class="fielddoc"><p>The right Alt key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac1b3fd7424feeda242cedbb64f3f5a7f"></a>RSystem </td><td class="fielddoc"><p>The right OS specific key: window (Windows and Linux), apple (MacOS X), ... </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a4aac50ce7c4923f96323fe84d592b139"></a>Menu </td><td class="fielddoc"><p>The Menu key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142afbe21cad5f264d685cf7f25060004184"></a>LBracket </td><td class="fielddoc"><p>The [ key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a578253a70b48e61830aa08292d44680f"></a>RBracket </td><td class="fielddoc"><p>The ] key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab50635b9c913837d1bd4453eec7cb506"></a>Semicolon </td><td class="fielddoc"><p>The ; key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab7374f48cc79e3085739160b8e3ef2f9"></a>Comma </td><td class="fielddoc"><p>The , key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac72ba959ab1946957e8dfd4f81ea811d"></a>Period </td><td class="fielddoc"><p>The . key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af031edb6bcf319734a6664388958c475"></a>Quote </td><td class="fielddoc"><p>The ' key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a7424bf901434a587a6c202c423e6786c"></a>Slash </td><td class="fielddoc"><p>The / key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142adbd7d6f90a1009e91acf7bb1dc068512"></a>Backslash </td><td class="fielddoc"><p>The \ key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a90be0882086bccb516e3afc5c7fb82eb"></a>Tilde </td><td class="fielddoc"><p>The ~ key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ae55c35f6b6417e1dbbfa351c64dfc743"></a>Equal </td><td class="fielddoc"><p>The = key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a5bde2cf47e6182e6f45d0d2197223c35"></a>Hyphen </td><td class="fielddoc"><p>The - key (hyphen) </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a6fdaa93b6b8d1a2b73bc239e9ada94ef"></a>Space </td><td class="fielddoc"><p>The Space key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a59e26db0965305492875d7da68f6a990"></a>Enter </td><td class="fielddoc"><p>The Enter/Return keys. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aa7c1581bac0f20164512572e6c60e98e"></a>Backspace </td><td class="fielddoc"><p>The Backspace key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a20c552c39c8356b1078f1cfff7936b4a"></a>Tab </td><td class="fielddoc"><p>The Tabulation key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aa24fe33bba1c3639c3aeaa317bd89d7e"></a>PageUp </td><td class="fielddoc"><p>The Page up key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a21c73323d9a8b6017f3bac0cb8c8ac1a"></a>PageDown </td><td class="fielddoc"><p>The Page down key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a4478343b2b7efc310f995fd4251a264d"></a>End </td><td class="fielddoc"><p>The End key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af41ae7c3927cc5ea8b43ee2fefe890e8"></a>Home </td><td class="fielddoc"><p>The Home key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a616c8cae362d229155c5c6e10b969943"></a>Insert </td><td class="fielddoc"><p>The Insert key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab66187002fc7f6695ef3d05237b93a38"></a>Delete </td><td class="fielddoc"><p>The Delete key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a158c586cbe8609031d1a7932e1a8dba2"></a>Add </td><td class="fielddoc"><p>The + key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a68983f67bd30d27b27c90d6794c78aa2"></a>Subtract </td><td class="fielddoc"><p>The - key (minus, usually from numpad) </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a10623ae71db8a6b5d97189fc21fb91ae"></a>Multiply </td><td class="fielddoc"><p>The * key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142afae3dc28752954f0bfe298ac52f58cb6"></a>Divide </td><td class="fielddoc"><p>The / key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac3fe5df11d15b57317c053a2ae13d9a9"></a>Left </td><td class="fielddoc"><p>Left arrow. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a2aeb083dea103a8e36b6850b51ef3632"></a>Right </td><td class="fielddoc"><p>Right arrow. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac4cf6ef2d2632445e9e26c8f2b70e82d"></a>Up </td><td class="fielddoc"><p>Up arrow. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a33dd676edbdf0817d7a65b21df3d0dca"></a>Down </td><td class="fielddoc"><p>Down arrow. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af0b2af83a7a8c358f7b8f7c403089a4e"></a>Numpad0 </td><td class="fielddoc"><p>The numpad 0 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a03536d369ae55cc18024f7e4a341a5ac"></a>Numpad1 </td><td class="fielddoc"><p>The numpad 1 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a8ad9ccf62631d583f44f06aebd662093"></a>Numpad2 </td><td class="fielddoc"><p>The numpad 2 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ab63ae26e90126b1842bde25d6dedb205"></a>Numpad3 </td><td class="fielddoc"><p>The numpad 3 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a65336d823bd823a0d246a872ff90e08a"></a>Numpad4 </td><td class="fielddoc"><p>The numpad 4 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a8bc5041f12fdfbefba1dbd823c7e1054"></a>Numpad5 </td><td class="fielddoc"><p>The numpad 5 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aaf28fdf0d3da6a18030e685478e3a713"></a>Numpad6 </td><td class="fielddoc"><p>The numpad 6 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a3f9bf9835d65a0df5cce2d3842a40541"></a>Numpad7 </td><td class="fielddoc"><p>The numpad 7 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a25dcd4e4183ceceb3ac06c72995bae49"></a>Numpad8 </td><td class="fielddoc"><p>The numpad 8 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a365eb80f54003670a78e3b850c28df21"></a>Numpad9 </td><td class="fielddoc"><p>The numpad 9 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ae59c7e28858e970c9d4f0e418179b632"></a>F1 </td><td class="fielddoc"><p>The F1 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a6a2faa5f876a1e75f24a596b658ff413"></a>F2 </td><td class="fielddoc"><p>The F2 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a1fb58d66f9c0183db3e70b2b0576074e"></a>F3 </td><td class="fielddoc"><p>The F3 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a71311e21238cf2c0df1bbf096bba68f2"></a>F4 </td><td class="fielddoc"><p>The F4 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a01fd2f93eddf2887186ea91180a789a8"></a>F5 </td><td class="fielddoc"><p>The F5 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac756a19b31eb28cd2c35c29d8e54ea04"></a>F6 </td><td class="fielddoc"><p>The F6 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a060d30d36a3e08208b2bc46d0f549b6c"></a>F7 </td><td class="fielddoc"><p>The F7 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ade468cd27716b9c2a0d0158afa2f8621"></a>F8 </td><td class="fielddoc"><p>The F8 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a3c5c2342003a7191de6636b5ef44e1b9"></a>F9 </td><td class="fielddoc"><p>The F9 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142aec695ecf296e7084a8f7f3ec408e16ac"></a>F10 </td><td class="fielddoc"><p>The F10 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af9a8de90d90a7a7582269bc5c41f5afd"></a>F11 </td><td class="fielddoc"><p>The F11 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142af9d8807117d946de5e403bcbd4d7161d"></a>F12 </td><td class="fielddoc"><p>The F12 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a9e28e971941ca2900c1eea17cda50a04"></a>F13 </td><td class="fielddoc"><p>The F13 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a9a0327a4ef876338d5f3c34c514f190c"></a>F14 </td><td class="fielddoc"><p>The F14 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a8949ce79077cc8bf64f4fa42bb6a2808"></a>F15 </td><td class="fielddoc"><p>The F15 key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a95daf340fcc3d5c2846f69d184170d9b"></a>Pause </td><td class="fielddoc"><p>The Pause key. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a93e6ffa0320fe9b2f29aec14a58be36b"></a>KeyCount </td><td class="fielddoc"><p>Keep last – the total number of keyboard keys. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a401a183dcfde0a06cb60fe6c91fa1e39"></a>Dash </td><td class="fielddoc"><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000019">Deprecated:</a></b></dt><dd>Use Hyphen instead </dd></dl>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a33aeaab900abcd01eebf2fcc4f6d97e2"></a>BackSpace </td><td class="fielddoc"><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000020">Deprecated:</a></b></dt><dd>Use Backspace instead </dd></dl>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a536df84e73859aa44e11e192459470b6"></a>BackSlash </td><td class="fielddoc"><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000021">Deprecated:</a></b></dt><dd>Use Backslash instead </dd></dl>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142a460ab09a36f9ed230504b89b9815de88"></a>SemiColon </td><td class="fielddoc"><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000022">Deprecated:</a></b></dt><dd>Use Semicolon instead </dd></dl>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="acb4cacd7cc5802dec45724cf3314a142ac291de81bdee518d636bc359f2ca77de"></a>Return </td><td class="fielddoc"><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000023">Deprecated:</a></b></dt><dd>Use Enter instead </dd></dl>
|
|
</td></tr>
|
|
</table>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Keyboard_8hpp_source.html#l00048">48</a> of file <a class="el" href="Keyboard_8hpp_source.html">Keyboard.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a80a04b2f53005886957f49eee3531599"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a80a04b2f53005886957f49eee3531599">◆ </a></span>isKeyPressed()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool sf::Keyboard::isKeyPressed </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classsf_1_1Keyboard.html#acb4cacd7cc5802dec45724cf3314a142">Key</a> </td>
|
|
<td class="paramname"><em>key</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check if a key is pressed. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td>Key to check</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if the key is pressed, false otherwise </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad61fee7e793242d444a8c5acd662fe5b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad61fee7e793242d444a8c5acd662fe5b">◆ </a></span>setVirtualKeyboardVisible()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void sf::Keyboard::setVirtualKeyboardVisible </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>visible</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show or hide the virtual keyboard. </p>
|
|
<p>Warning: the virtual keyboard is not supported on all systems. It will typically be implemented on mobile OSes (Android, iOS) but not on desktop OSes (Windows, Linux, ...).</p>
|
|
<p>If the virtual keyboard is not available, this function does nothing.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">visible</td><td>True to show, false to hide </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="Keyboard_8hpp_source.html">Keyboard.hpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
SFML is licensed under the terms and conditions of the <a href="https://www.sfml-dev.org/license.php">zlib/png license</a>.<br>
|
|
Copyright © Laurent Gomila ::
|
|
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|