<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="sensekey">
  <refmeta>
    <refentrytitle>sensekey</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>sensekey</refname>
 
    <refpurpose>
      Returns the ASCII code of a key that has been pressed.
      <indexterm id="IndexSensekey"><primary>sensekey</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Returns the ASCII code of a key that has been pressed, or -1 if no key has been pressed.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>kr <command>sensekey</command></synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      At release, this has not been properly verified, and seems not to work at all on Windows.
    </para>

    <note>
      <title>Note</title>
      <para>
        This opcode can also be written as <link linkend="sense"><citetitle>sense</citetitle></link>.
      </para>
    </note>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the sensekey opcode. It uses the files <ulink url="examples/sensekey.orc"><citetitle>sensekey.orc</citetitle></ulink> and <ulink url="examples/sensekey.sco"><citetitle>sensekey.sco</citetitle></ulink>.

      <example>
        <title>Example of the sensekey opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/sensekey.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/sensekey.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Here is what the output should look like when the "q" button is pressed...
      <screen>
q i1 357967744.00000
      </screen>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn;</member>
        <member>University of Bath, Codemist. Ltd.</member>
        <member>Bath, UK</member>
        <member>October 2000</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>

    <para>New in Csound version 4.09. Renamed in Csound version 4.10.</para>
  </refsect1>
</refentry>
