<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - I have problems with "isKeyPressed ()" in laptops]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=1138&amp;type=atom"/>
	<updated>2015-08-19T07:25:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=1138</id>
		<entry>
			<title type="html"><![CDATA[Re: I have problems with "isKeyPressed ()" in laptops]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7594#p7594"/>
			<content type="html"><![CDATA[<p>and if it&#039;s not enough, in the function &quot;gameWinEvents&quot; add :</p><div class="codebox"><pre><code>case MWIN_EVENT_CHAR:
        {
            unsigned int key = windowEvents-&gt;data[0];
            const char * name = getKeyName(key);
            if(name)
                input-&gt;downKey(name);
        }
        break;</code></pre></div><p>(to be tested)</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2015-08-19T07:25:05Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7594#p7594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: I have problems with "isKeyPressed ()" in laptops]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7593#p7593"/>
			<content type="html"><![CDATA[<p>yes, but you&#039;ll have to compile Maratis from source.</p><p>open &quot;MGameWinEvents.h&quot;, in the function &quot;getKeyName&quot;, in the &quot;switch(key)&quot;</p><p>change:</p><div class="codebox"><pre><code>    case MKEY_KP0: return &quot;0&quot;;
    case MKEY_KP1: return &quot;1&quot;;
    case MKEY_KP2: return &quot;2&quot;;
    case MKEY_KP3: return &quot;3&quot;;
    case MKEY_KP4: return &quot;4&quot;;
    case MKEY_KP5: return &quot;5&quot;;
    case MKEY_KP6: return &quot;6&quot;;
    case MKEY_KP7: return &quot;7&quot;;
    case MKEY_KP8: return &quot;8&quot;;
    case MKEY_KP9: return &quot;9&quot;;</code></pre></div><p>to:</p><div class="codebox"><pre><code>    case &#039;0&#039;: case MKEY_KP0: return &quot;0&quot;;
    case &#039;1&#039;: case MKEY_KP1: return &quot;1&quot;;
    case &#039;2&#039;: case MKEY_KP2: return &quot;2&quot;;
    case &#039;3&#039;: case MKEY_KP3: return &quot;3&quot;;
    case &#039;4&#039;: case MKEY_KP4: return &quot;4&quot;;
    case &#039;5&#039;: case MKEY_KP5: return &quot;5&quot;;
    case &#039;6&#039;: case MKEY_KP6: return &quot;6&quot;;
    case &#039;7&#039;: case MKEY_KP7: return &quot;7&quot;;
    case &#039;8&#039;: case MKEY_KP8: return &quot;8&quot;;
    case &#039;9&#039;: case MKEY_KP9: return &quot;9&quot;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2015-08-19T07:20:01Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7593#p7593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: I have problems with "isKeyPressed ()" in laptops]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7592#p7592"/>
			<content type="html"><![CDATA[<p>Can I make this in a simple way?</p>]]></content>
			<author>
				<name><![CDATA[ArielRiv]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2860</uri>
			</author>
			<updated>2015-08-19T02:06:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7592#p7592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: I have problems with "isKeyPressed ()" in laptops]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7591#p7591"/>
			<content type="html"><![CDATA[<p>Yes, it&#039;s a limitation, sorry.<br />This case is not handled in the code,<br />it need to be added inside &quot;MGameWinEvents.h&quot;</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2015-08-17T21:12:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7591#p7591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[I have problems with "isKeyPressed ()" in laptops]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7590#p7590"/>
			<content type="html"><![CDATA[<p>the &quot;isKeyPressed ()&quot; function is not detected when I press the number keys on a laptop, how can I solve this problem?</p>]]></content>
			<author>
				<name><![CDATA[ArielRiv]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2860</uri>
			</author>
			<updated>2015-08-17T01:45:16Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7590#p7590</id>
		</entry>
</feed>
