1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>input_mt_report_slot_state</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch08s02.html" title="Multitouch Library"><link rel="prev" href="API-input-mt-destroy-slots.html" title="input_mt_destroy_slots"><link rel="next" href="API-input-mt-report-finger-count.html" title="input_mt_report_finger_count"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">input_mt_report_slot_state</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-input-mt-destroy-slots.html">Prev</a> </td><th width="60%" align="center">Multitouch Library</th><td width="20%" align="right"> <a accesskey="n" href="API-input-mt-report-finger-count.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-input-mt-report-slot-state"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>input_mt_report_slot_state — 2 report contact state 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">input_mt_report_slot_state </b>(</code></td><td>struct input_dev * <var class="pdparam">dev</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">tool_type</var>, </td></tr><tr><td> </td><td>bool <var class="pdparam">active</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1114592468"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p> 4 input device with allocated MT slots 5 </p></dd><dt><span class="term"><em class="parameter"><code>tool_type</code></em></span></dt><dd><p> 6 the tool type to use in this slot 7 </p></dd><dt><span class="term"><em class="parameter"><code>active</code></em></span></dt><dd><p> 8 true if contact is active, false otherwise 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1114596172"></a><h2>Description</h2><p> 10 Reports a contact via ABS_MT_TRACKING_ID, and optionally 11 ABS_MT_TOOL_TYPE. If active is true and the slot is currently 12 inactive, or if the tool type is changed, a new tracking id is 13 assigned to the slot. The tool type is only reported if the 14 corresponding absbit field is set. 15</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-input-mt-destroy-slots.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch08s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-input-mt-report-finger-count.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">input_mt_destroy_slots</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">input_mt_report_finger_count</span></td></tr></table></div></body></html> 16