<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>キーが押されていることを判定するのに GetAsyncKeyState() の戻り値を何と比較するか？ へのコメント</title>
	<atom:link href="http://www.game-create.com/archives/1924/feed" rel="self" type="application/rss+xml" />
	<link>http://www.game-create.com/archives/1924</link>
	<description>文系の人でも、数理学がわからない人でもゲームプログラミングをマスターできるブログ</description>
	<lastBuildDate>Sun, 06 Jun 2010 06:07:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Byerkut より</title>
		<link>http://www.game-create.com/archives/1924/comment-page-1#comment-8441</link>
		<dc:creator>Byerkut</dc:creator>
		<pubDate>Mon, 13 Jul 2009 11:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.game-create.com/?p=1924#comment-8441</guid>
		<description>いえ、とんでもありません。
コメントいただいてありがとうございます。

私も同じように考えてしまいまして、
「あ！間違ってる！」と「あれ？間違ってるん？」を行き来している次第です。
自分は、この関数をまだ誤解している部分がありそうです。</description>
		<content:encoded><![CDATA[<p>いえ、とんでもありません。<br />
コメントいただいてありがとうございます。</p>
<p>私も同じように考えてしまいまして、<br />
「あ！間違ってる！」と「あれ？間違ってるん？」を行き来している次第です。<br />
自分は、この関数をまだ誤解している部分がありそうです。</p>
]]></content:encoded>
	</item>
	<item>
		<title>たまたま見かけた より</title>
		<link>http://www.game-create.com/archives/1924/comment-page-1#comment-8440</link>
		<dc:creator>たまたま見かけた</dc:creator>
		<pubDate>Mon, 13 Jul 2009 11:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.game-create.com/?p=1924#comment-8440</guid>
		<description>すみません。よく考えたら0x8000で2バイトでした。アホか俺は
上のコメントは無視してください。申し訳ありませんでした。</description>
		<content:encoded><![CDATA[<p>すみません。よく考えたら0&#215;8000で2バイトでした。アホか俺は<br />
上のコメントは無視してください。申し訳ありませんでした。</p>
]]></content:encoded>
	</item>
	<item>
		<title>たまたま見かけた より</title>
		<link>http://www.game-create.com/archives/1924/comment-page-1#comment-8439</link>
		<dc:creator>たまたま見かけた</dc:creator>
		<pubDate>Mon, 13 Jul 2009 10:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.game-create.com/?p=1924#comment-8439</guid>
		<description>MSDNによるとGetAsyncKeyStateの戻り値はSHORT。つまり16bitです。
そのため比較すべき値は0x8000でなく、0x0080です。

後はわかると思いますが、実際の戻り値が0x0080でなく0xFF80なのは、
GetAsyncKeyStateの戻り値を32bitの変数に代入したためかと思われます。
最上位bitがセット==負の値ですからね</description>
		<content:encoded><![CDATA[<p>MSDNによるとGetAsyncKeyStateの戻り値はSHORT。つまり16bitです。<br />
そのため比較すべき値は0&#215;8000でなく、0&#215;0080です。</p>
<p>後はわかると思いますが、実際の戻り値が0&#215;0080でなく0xFF80なのは、<br />
GetAsyncKeyStateの戻り値を32bitの変数に代入したためかと思われます。<br />
最上位bitがセット==負の値ですからね</p>
]]></content:encoded>
	</item>
</channel>
</rss>

