1c0abf9e6Sopenharmony_ci<!-- HTML header for doxygen 1.8.8-->
2c0abf9e6Sopenharmony_ci<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3c0abf9e6Sopenharmony_ci<html xmlns="http://www.w3.org/1999/xhtml">
4c0abf9e6Sopenharmony_ci    <head>
5c0abf9e6Sopenharmony_ci        <meta http-equiv="X-UA-Compatible" content="IE=edge">
6c0abf9e6Sopenharmony_ci        <!-- For Mobile Devices -->
7c0abf9e6Sopenharmony_ci        <meta name="viewport" content="width=device-width, initial-scale=1">
8c0abf9e6Sopenharmony_ci        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
9c0abf9e6Sopenharmony_ci        <meta name="generator" content="Doxygen 1.9.1"/>
10c0abf9e6Sopenharmony_ci        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
11c0abf9e6Sopenharmony_ci        <title>libevdev: Modifying the appearance or capabilities of the device</title>
12c0abf9e6Sopenharmony_ci        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
13c0abf9e6Sopenharmony_ci        <script type="text/javascript" src="dynsections.js"></script>
14c0abf9e6Sopenharmony_ci        <link href="search/search.css" rel="stylesheet" type="text/css"/>
15c0abf9e6Sopenharmony_ci<script type="text/javascript" src="search/searchdata.js"></script>
16c0abf9e6Sopenharmony_ci<script type="text/javascript" src="search/search.js"></script>
17c0abf9e6Sopenharmony_ci        <link href="doxygen.css" rel="stylesheet" type="text/css" />
18c0abf9e6Sopenharmony_ci        <link href="bootstrap.css" rel="stylesheet" type="text/css"/>
19c0abf9e6Sopenharmony_ci<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
20c0abf9e6Sopenharmony_ci<link href="libevdevdoxygen.css" rel="stylesheet" type="text/css"/>
21c0abf9e6Sopenharmony_ci        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
22c0abf9e6Sopenharmony_ci        <script type="text/javascript" src="doxy-boot.js"></script>
23c0abf9e6Sopenharmony_ci    </head>
24c0abf9e6Sopenharmony_ci    <body>
25c0abf9e6Sopenharmony_ci        <nav class="navbar navbar-default" role="navigation">
26c0abf9e6Sopenharmony_ci            <div class="container">
27c0abf9e6Sopenharmony_ci                <div class="navbar-header">
28c0abf9e6Sopenharmony_ci                    <a class="navbar-brand">libevdev 1.13.0</a>
29c0abf9e6Sopenharmony_ci                </div>
30c0abf9e6Sopenharmony_ci            </div>
31c0abf9e6Sopenharmony_ci        </nav>
32c0abf9e6Sopenharmony_ci        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
33c0abf9e6Sopenharmony_ci            <div class="content" id="content">
34c0abf9e6Sopenharmony_ci                <div class="container">
35c0abf9e6Sopenharmony_ci                    <div class="row">
36c0abf9e6Sopenharmony_ci                        <div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
37c0abf9e6Sopenharmony_ci                            <div style="margin-bottom: 15px;">
38c0abf9e6Sopenharmony_ci<!-- end header part -->
39c0abf9e6Sopenharmony_ci<!-- Generated by Doxygen 1.9.1 -->
40c0abf9e6Sopenharmony_ci<script type="text/javascript">
41c0abf9e6Sopenharmony_ci/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
42c0abf9e6Sopenharmony_civar searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
43c0abf9e6Sopenharmony_ci/* @license-end */
44c0abf9e6Sopenharmony_ci</script>
45c0abf9e6Sopenharmony_ci<script type="text/javascript" src="menudata.js"></script>
46c0abf9e6Sopenharmony_ci<script type="text/javascript" src="menu.js"></script>
47c0abf9e6Sopenharmony_ci<script type="text/javascript">
48c0abf9e6Sopenharmony_ci/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
49c0abf9e6Sopenharmony_ci$(function() {
50c0abf9e6Sopenharmony_ci  initMenu('',true,false,'search.php','Search');
51c0abf9e6Sopenharmony_ci  $(document).ready(function() { init_search(); });
52c0abf9e6Sopenharmony_ci});
53c0abf9e6Sopenharmony_ci/* @license-end */</script>
54c0abf9e6Sopenharmony_ci<div id="main-nav"></div>
55c0abf9e6Sopenharmony_ci</div><!-- top -->
56c0abf9e6Sopenharmony_ci<!-- window showing the filter options -->
57c0abf9e6Sopenharmony_ci<div id="MSearchSelectWindow"
58c0abf9e6Sopenharmony_ci     onmouseover="return searchBox.OnSearchSelectShow()"
59c0abf9e6Sopenharmony_ci     onmouseout="return searchBox.OnSearchSelectHide()"
60c0abf9e6Sopenharmony_ci     onkeydown="return searchBox.OnSearchSelectKey(event)">
61c0abf9e6Sopenharmony_ci</div>
62c0abf9e6Sopenharmony_ci
63c0abf9e6Sopenharmony_ci<!-- iframe showing the search results (closed by default) -->
64c0abf9e6Sopenharmony_ci<div id="MSearchResultsWindow">
65c0abf9e6Sopenharmony_ci<iframe src="javascript:void(0)" frameborder="0" 
66c0abf9e6Sopenharmony_ci        name="MSearchResults" id="MSearchResults">
67c0abf9e6Sopenharmony_ci</iframe>
68c0abf9e6Sopenharmony_ci</div>
69c0abf9e6Sopenharmony_ci
70c0abf9e6Sopenharmony_ci<div class="header">
71c0abf9e6Sopenharmony_ci  <div class="summary">
72c0abf9e6Sopenharmony_ci<a href="#enum-members">Enumerations</a> &#124;
73c0abf9e6Sopenharmony_ci<a href="#func-members">Functions</a>  </div>
74c0abf9e6Sopenharmony_ci  <div class="headertitle">
75c0abf9e6Sopenharmony_ci<div class="title">Modifying the appearance or capabilities of the device</div>  </div>
76c0abf9e6Sopenharmony_ci</div><!--header-->
77c0abf9e6Sopenharmony_ci<div class="contents">
78c0abf9e6Sopenharmony_ci
79c0abf9e6Sopenharmony_ci<p>Modifying the set of events reported by this device.  
80c0abf9e6Sopenharmony_ci<a href="#details">More...</a></p>
81c0abf9e6Sopenharmony_ci<table class="memberdecls">
82c0abf9e6Sopenharmony_ci<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
83c0abf9e6Sopenharmony_ciEnumerations</h2></td></tr>
84c0abf9e6Sopenharmony_ci<tr class="memitem:ga8cddf7779debef0067665671e911ec41"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> { <a class="el" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a>
85c0abf9e6Sopenharmony_ci, <a class="el" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a>
86c0abf9e6Sopenharmony_ci }</td></tr>
87c0abf9e6Sopenharmony_ci<tr class="separator:ga8cddf7779debef0067665671e911ec41"><td class="memSeparator" colspan="2">&#160;</td></tr>
88c0abf9e6Sopenharmony_ci</table><table class="memberdecls">
89c0abf9e6Sopenharmony_ci<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
90c0abf9e6Sopenharmony_ciFunctions</h2></td></tr>
91c0abf9e6Sopenharmony_ci<tr class="memitem:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">libevdev_set_name</a> (struct libevdev *dev, const char *name)</td></tr>
92c0abf9e6Sopenharmony_ci<tr class="memdesc:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's name as returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>.  <a href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">More...</a><br /></td></tr>
93c0abf9e6Sopenharmony_ci<tr class="separator:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="memSeparator" colspan="2">&#160;</td></tr>
94c0abf9e6Sopenharmony_ci<tr class="memitem:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">libevdev_set_phys</a> (struct libevdev *dev, const char *phys)</td></tr>
95c0abf9e6Sopenharmony_ci<tr class="memdesc:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's physical location as returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>.  <a href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">More...</a><br /></td></tr>
96c0abf9e6Sopenharmony_ci<tr class="separator:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="memSeparator" colspan="2">&#160;</td></tr>
97c0abf9e6Sopenharmony_ci<tr class="memitem:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">libevdev_set_uniq</a> (struct libevdev *dev, const char *uniq)</td></tr>
98c0abf9e6Sopenharmony_ci<tr class="memdesc:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's unique identifier as returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>.  <a href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">More...</a><br /></td></tr>
99c0abf9e6Sopenharmony_ci<tr class="separator:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
100c0abf9e6Sopenharmony_ci<tr class="memitem:ga62fbdaac056ab5c3db154a9eeaf33799"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga62fbdaac056ab5c3db154a9eeaf33799">libevdev_set_id_product</a> (struct libevdev *dev, int product_id)</td></tr>
101c0abf9e6Sopenharmony_ci<tr class="separator:ga62fbdaac056ab5c3db154a9eeaf33799"><td class="memSeparator" colspan="2">&#160;</td></tr>
102c0abf9e6Sopenharmony_ci<tr class="memitem:ga8ce28051ebbb73de1d04d782f4d0d6fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8ce28051ebbb73de1d04d782f4d0d6fe">libevdev_set_id_vendor</a> (struct libevdev *dev, int vendor_id)</td></tr>
103c0abf9e6Sopenharmony_ci<tr class="separator:ga8ce28051ebbb73de1d04d782f4d0d6fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
104c0abf9e6Sopenharmony_ci<tr class="memitem:gaf99139c728ba1bd4b37ede612780b6b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaf99139c728ba1bd4b37ede612780b6b0">libevdev_set_id_bustype</a> (struct libevdev *dev, int bustype)</td></tr>
105c0abf9e6Sopenharmony_ci<tr class="separator:gaf99139c728ba1bd4b37ede612780b6b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
106c0abf9e6Sopenharmony_ci<tr class="memitem:gaee1d2db88b191ec21d5bf22dd4fe3055"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaee1d2db88b191ec21d5bf22dd4fe3055">libevdev_set_id_version</a> (struct libevdev *dev, int version)</td></tr>
107c0abf9e6Sopenharmony_ci<tr class="separator:gaee1d2db88b191ec21d5bf22dd4fe3055"><td class="memSeparator" colspan="2">&#160;</td></tr>
108c0abf9e6Sopenharmony_ci<tr class="memitem:gafc552080520c9d886452b05f3a1d75b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gafc552080520c9d886452b05f3a1d75b6">libevdev_enable_property</a> (struct libevdev *dev, unsigned int prop)</td></tr>
109c0abf9e6Sopenharmony_ci<tr class="separator:gafc552080520c9d886452b05f3a1d75b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
110c0abf9e6Sopenharmony_ci<tr class="memitem:ga8f6367c36331c803ad69b2591e210019"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8f6367c36331c803ad69b2591e210019">libevdev_disable_property</a> (struct libevdev *dev, unsigned int prop)</td></tr>
111c0abf9e6Sopenharmony_ci<tr class="separator:ga8f6367c36331c803ad69b2591e210019"><td class="memSeparator" colspan="2">&#160;</td></tr>
112c0abf9e6Sopenharmony_ci<tr class="memitem:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">libevdev_set_event_value</a> (struct libevdev *dev, unsigned int type, unsigned int code, int value)</td></tr>
113c0abf9e6Sopenharmony_ci<tr class="memdesc:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value for a given event type and code.  <a href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">More...</a><br /></td></tr>
114c0abf9e6Sopenharmony_ci<tr class="separator:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="memSeparator" colspan="2">&#160;</td></tr>
115c0abf9e6Sopenharmony_ci<tr class="memitem:ga0c61f4919b03b0850529a50c37a20333"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">libevdev_set_slot_value</a> (struct libevdev *dev, unsigned int slot, unsigned int code, int value)</td></tr>
116c0abf9e6Sopenharmony_ci<tr class="memdesc:ga0c61f4919b03b0850529a50c37a20333"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value for a given code for the given slot.  <a href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">More...</a><br /></td></tr>
117c0abf9e6Sopenharmony_ci<tr class="separator:ga0c61f4919b03b0850529a50c37a20333"><td class="memSeparator" colspan="2">&#160;</td></tr>
118c0abf9e6Sopenharmony_ci<tr class="memitem:gaca62172c2a823cd02eacf0d2292d917a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">libevdev_set_abs_minimum</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
119c0abf9e6Sopenharmony_ci<tr class="memdesc:gaca62172c2a823cd02eacf0d2292d917a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the minimum for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">More...</a><br /></td></tr>
120c0abf9e6Sopenharmony_ci<tr class="separator:gaca62172c2a823cd02eacf0d2292d917a"><td class="memSeparator" colspan="2">&#160;</td></tr>
121c0abf9e6Sopenharmony_ci<tr class="memitem:ga2302fd9a491d8e27280157d67a703af6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">libevdev_set_abs_maximum</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
122c0abf9e6Sopenharmony_ci<tr class="memdesc:ga2302fd9a491d8e27280157d67a703af6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the maximum for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">More...</a><br /></td></tr>
123c0abf9e6Sopenharmony_ci<tr class="separator:ga2302fd9a491d8e27280157d67a703af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
124c0abf9e6Sopenharmony_ci<tr class="memitem:gaa192bf0c68620be819337da6ec361c21"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">libevdev_set_abs_fuzz</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
125c0abf9e6Sopenharmony_ci<tr class="memdesc:gaa192bf0c68620be819337da6ec361c21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the fuzz for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">More...</a><br /></td></tr>
126c0abf9e6Sopenharmony_ci<tr class="separator:gaa192bf0c68620be819337da6ec361c21"><td class="memSeparator" colspan="2">&#160;</td></tr>
127c0abf9e6Sopenharmony_ci<tr class="memitem:gabd309f30744a49e9391250b00ba2d67a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">libevdev_set_abs_flat</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
128c0abf9e6Sopenharmony_ci<tr class="memdesc:gabd309f30744a49e9391250b00ba2d67a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the flat for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">More...</a><br /></td></tr>
129c0abf9e6Sopenharmony_ci<tr class="separator:gabd309f30744a49e9391250b00ba2d67a"><td class="memSeparator" colspan="2">&#160;</td></tr>
130c0abf9e6Sopenharmony_ci<tr class="memitem:ga2266b59711cdaa4fc12fa56c9313a038"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">libevdev_set_abs_resolution</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
131c0abf9e6Sopenharmony_ci<tr class="memdesc:ga2266b59711cdaa4fc12fa56c9313a038"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the resolution for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">More...</a><br /></td></tr>
132c0abf9e6Sopenharmony_ci<tr class="separator:ga2266b59711cdaa4fc12fa56c9313a038"><td class="memSeparator" colspan="2">&#160;</td></tr>
133c0abf9e6Sopenharmony_ci<tr class="memitem:gafc7a4f5308e2dbf55f875630b8dca049"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">libevdev_set_abs_info</a> (struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</td></tr>
134c0abf9e6Sopenharmony_ci<tr class="memdesc:gafc7a4f5308e2dbf55f875630b8dca049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the abs info for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">More...</a><br /></td></tr>
135c0abf9e6Sopenharmony_ci<tr class="separator:gafc7a4f5308e2dbf55f875630b8dca049"><td class="memSeparator" colspan="2">&#160;</td></tr>
136c0abf9e6Sopenharmony_ci<tr class="memitem:ga59ef78b1557f9543d0060ab25b0167ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">libevdev_enable_event_type</a> (struct libevdev *dev, unsigned int type)</td></tr>
137c0abf9e6Sopenharmony_ci<tr class="memdesc:ga59ef78b1557f9543d0060ab25b0167ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly enable an event type on this device, even if the underlying device does not support it.  <a href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">More...</a><br /></td></tr>
138c0abf9e6Sopenharmony_ci<tr class="separator:ga59ef78b1557f9543d0060ab25b0167ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
139c0abf9e6Sopenharmony_ci<tr class="memitem:gabbacb53b66882b5335055c0fd1f40d9a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">libevdev_disable_event_type</a> (struct libevdev *dev, unsigned int type)</td></tr>
140c0abf9e6Sopenharmony_ci<tr class="memdesc:gabbacb53b66882b5335055c0fd1f40d9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly disable an event type on this device, even if the underlying device provides it.  <a href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">More...</a><br /></td></tr>
141c0abf9e6Sopenharmony_ci<tr class="separator:gabbacb53b66882b5335055c0fd1f40d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
142c0abf9e6Sopenharmony_ci<tr class="memitem:ga51cfda33fd526549046399aadd764fca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">libevdev_enable_event_code</a> (struct libevdev *dev, unsigned int type, unsigned int code, const void *data)</td></tr>
143c0abf9e6Sopenharmony_ci<tr class="memdesc:ga51cfda33fd526549046399aadd764fca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly enable an event code on this device, even if the underlying device does not support it.  <a href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">More...</a><br /></td></tr>
144c0abf9e6Sopenharmony_ci<tr class="separator:ga51cfda33fd526549046399aadd764fca"><td class="memSeparator" colspan="2">&#160;</td></tr>
145c0abf9e6Sopenharmony_ci<tr class="memitem:ga6199a7c8144f54e092e913c2d2df16de"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">libevdev_disable_event_code</a> (struct libevdev *dev, unsigned int type, unsigned int code)</td></tr>
146c0abf9e6Sopenharmony_ci<tr class="memdesc:ga6199a7c8144f54e092e913c2d2df16de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly disable an event code on this device, even if the underlying device provides it.  <a href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">More...</a><br /></td></tr>
147c0abf9e6Sopenharmony_ci<tr class="separator:ga6199a7c8144f54e092e913c2d2df16de"><td class="memSeparator" colspan="2">&#160;</td></tr>
148c0abf9e6Sopenharmony_ci<tr class="memitem:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">libevdev_kernel_set_abs_info</a> (struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</td></tr>
149c0abf9e6Sopenharmony_ci<tr class="memdesc:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the device's EV_ABS axis to the value defined in the abs parameter.  <a href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">More...</a><br /></td></tr>
150c0abf9e6Sopenharmony_ci<tr class="separator:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="memSeparator" colspan="2">&#160;</td></tr>
151c0abf9e6Sopenharmony_ci<tr class="memitem:gaa7d13aeac3c40e16f296467780e67c01"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">libevdev_kernel_set_led_value</a> (struct libevdev *dev, unsigned int code, enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> value)</td></tr>
152c0abf9e6Sopenharmony_ci<tr class="memdesc:gaa7d13aeac3c40e16f296467780e67c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn an LED on or off.  <a href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">More...</a><br /></td></tr>
153c0abf9e6Sopenharmony_ci<tr class="separator:gaa7d13aeac3c40e16f296467780e67c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
154c0abf9e6Sopenharmony_ci<tr class="memitem:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a> (struct libevdev *dev,...)</td></tr>
155c0abf9e6Sopenharmony_ci<tr class="memdesc:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn multiple LEDs on or off simultaneously.  <a href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">More...</a><br /></td></tr>
156c0abf9e6Sopenharmony_ci<tr class="separator:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="memSeparator" colspan="2">&#160;</td></tr>
157c0abf9e6Sopenharmony_ci<tr class="memitem:ga2925b6fbf8c7991ff2164424b840b82d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">libevdev_set_clock_id</a> (struct libevdev *dev, int clockid)</td></tr>
158c0abf9e6Sopenharmony_ci<tr class="memdesc:ga2925b6fbf8c7991ff2164424b840b82d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the clock ID to be used for timestamps.  <a href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">More...</a><br /></td></tr>
159c0abf9e6Sopenharmony_ci<tr class="separator:ga2925b6fbf8c7991ff2164424b840b82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
160c0abf9e6Sopenharmony_ci</table>
161c0abf9e6Sopenharmony_ci<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
162c0abf9e6Sopenharmony_ci<p>Modifying the set of events reported by this device. </p>
163c0abf9e6Sopenharmony_ci<p>By default, the libevdev device mirrors the kernel device, enabling only those bits exported by the kernel. This set of functions enable or disable bits as seen from the caller.</p>
164c0abf9e6Sopenharmony_ci<p>Enabling an event type or code does not affect event reporting - a software-enabled event will not be generated by the physical hardware. Disabling an event will prevent libevdev from routing such events to the caller. Enabling and disabling event types and codes is at the library level and thus only affects the caller.</p>
165c0abf9e6Sopenharmony_ci<p>If an event type or code is enabled at kernel-level, future users of this device will see this event enabled. Currently there is no option of disabling an event type or code at kernel-level. </p>
166c0abf9e6Sopenharmony_ci<h2 class="groupheader">Enumeration Type Documentation</h2>
167c0abf9e6Sopenharmony_ci<a id="ga8cddf7779debef0067665671e911ec41"></a>
168c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga8cddf7779debef0067665671e911ec41">&#9670;&nbsp;</a></span>libevdev_led_value</h2>
169c0abf9e6Sopenharmony_ci
170c0abf9e6Sopenharmony_ci<div class="memitem">
171c0abf9e6Sopenharmony_ci<div class="memproto">
172c0abf9e6Sopenharmony_ci      <table class="memname">
173c0abf9e6Sopenharmony_ci        <tr>
174c0abf9e6Sopenharmony_ci          <td class="memname">enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a></td>
175c0abf9e6Sopenharmony_ci        </tr>
176c0abf9e6Sopenharmony_ci      </table>
177c0abf9e6Sopenharmony_ci</div><div class="memdoc">
178c0abf9e6Sopenharmony_ci<table class="fieldtable">
179c0abf9e6Sopenharmony_ci<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"></a>LIBEVDEV_LED_ON&#160;</td><td class="fielddoc"><p>Turn the LED on. </p>
180c0abf9e6Sopenharmony_ci</td></tr>
181c0abf9e6Sopenharmony_ci<tr><td class="fieldname"><a id="gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"></a>LIBEVDEV_LED_OFF&#160;</td><td class="fielddoc"><p>Turn the LED off. </p>
182c0abf9e6Sopenharmony_ci</td></tr>
183c0abf9e6Sopenharmony_ci</table>
184c0abf9e6Sopenharmony_ci
185c0abf9e6Sopenharmony_ci</div>
186c0abf9e6Sopenharmony_ci</div>
187c0abf9e6Sopenharmony_ci<h2 class="groupheader">Function Documentation</h2>
188c0abf9e6Sopenharmony_ci<a id="ga6199a7c8144f54e092e913c2d2df16de"></a>
189c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga6199a7c8144f54e092e913c2d2df16de">&#9670;&nbsp;</a></span>libevdev_disable_event_code()</h2>
190c0abf9e6Sopenharmony_ci
191c0abf9e6Sopenharmony_ci<div class="memitem">
192c0abf9e6Sopenharmony_ci<div class="memproto">
193c0abf9e6Sopenharmony_ci      <table class="memname">
194c0abf9e6Sopenharmony_ci        <tr>
195c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_disable_event_code </td>
196c0abf9e6Sopenharmony_ci          <td>(</td>
197c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
198c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
199c0abf9e6Sopenharmony_ci        </tr>
200c0abf9e6Sopenharmony_ci        <tr>
201c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
202c0abf9e6Sopenharmony_ci          <td></td>
203c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
204c0abf9e6Sopenharmony_ci          <td class="paramname"><em>type</em>, </td>
205c0abf9e6Sopenharmony_ci        </tr>
206c0abf9e6Sopenharmony_ci        <tr>
207c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
208c0abf9e6Sopenharmony_ci          <td></td>
209c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
210c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>&#160;</td>
211c0abf9e6Sopenharmony_ci        </tr>
212c0abf9e6Sopenharmony_ci        <tr>
213c0abf9e6Sopenharmony_ci          <td></td>
214c0abf9e6Sopenharmony_ci          <td>)</td>
215c0abf9e6Sopenharmony_ci          <td></td><td></td>
216c0abf9e6Sopenharmony_ci        </tr>
217c0abf9e6Sopenharmony_ci      </table>
218c0abf9e6Sopenharmony_ci</div><div class="memdoc">
219c0abf9e6Sopenharmony_ci
220c0abf9e6Sopenharmony_ci<p>Forcibly disable an event code on this device, even if the underlying device provides it. </p>
221c0abf9e6Sopenharmony_ci<p>This effectively mutes the respective set of events. libevdev will filter any events matching this type and code and none will reach the caller. <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> will return false for this code.</p>
222c0abf9e6Sopenharmony_ci<p>Disabling all event codes for a given type will not disable the event type. Use <a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type()</a> for that.</p>
223c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device.</p>
224c0abf9e6Sopenharmony_ci<p>Disabling codes of type EV_SYN will not work. Don't shoot yourself in the foot. It hurts.</p>
225c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
226c0abf9e6Sopenharmony_ci  <table class="params">
227c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
228c0abf9e6Sopenharmony_ci    <tr><td class="paramname">type</td><td>The event type to disable (EV_ABS, EV_KEY, ...) </td></tr>
229c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The event code to disable (ABS_X, REL_X, etc.)</td></tr>
230c0abf9e6Sopenharmony_ci  </table>
231c0abf9e6Sopenharmony_ci  </dd>
232c0abf9e6Sopenharmony_ci</dl>
233c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
234c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code</a> </dd>
235c0abf9e6Sopenharmony_ci<dd>
236c0abf9e6Sopenharmony_ci<a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type</a> </dd></dl>
237c0abf9e6Sopenharmony_ci
238c0abf9e6Sopenharmony_ci</div>
239c0abf9e6Sopenharmony_ci</div>
240c0abf9e6Sopenharmony_ci<a id="gabbacb53b66882b5335055c0fd1f40d9a"></a>
241c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gabbacb53b66882b5335055c0fd1f40d9a">&#9670;&nbsp;</a></span>libevdev_disable_event_type()</h2>
242c0abf9e6Sopenharmony_ci
243c0abf9e6Sopenharmony_ci<div class="memitem">
244c0abf9e6Sopenharmony_ci<div class="memproto">
245c0abf9e6Sopenharmony_ci      <table class="memname">
246c0abf9e6Sopenharmony_ci        <tr>
247c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_disable_event_type </td>
248c0abf9e6Sopenharmony_ci          <td>(</td>
249c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
250c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
251c0abf9e6Sopenharmony_ci        </tr>
252c0abf9e6Sopenharmony_ci        <tr>
253c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
254c0abf9e6Sopenharmony_ci          <td></td>
255c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
256c0abf9e6Sopenharmony_ci          <td class="paramname"><em>type</em>&#160;</td>
257c0abf9e6Sopenharmony_ci        </tr>
258c0abf9e6Sopenharmony_ci        <tr>
259c0abf9e6Sopenharmony_ci          <td></td>
260c0abf9e6Sopenharmony_ci          <td>)</td>
261c0abf9e6Sopenharmony_ci          <td></td><td></td>
262c0abf9e6Sopenharmony_ci        </tr>
263c0abf9e6Sopenharmony_ci      </table>
264c0abf9e6Sopenharmony_ci</div><div class="memdoc">
265c0abf9e6Sopenharmony_ci
266c0abf9e6Sopenharmony_ci<p>Forcibly disable an event type on this device, even if the underlying device provides it. </p>
267c0abf9e6Sopenharmony_ci<p>This effectively mutes the respective set of events. libevdev will filter any events matching this type and none will reach the caller. <a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type()</a> will return false for this type.</p>
268c0abf9e6Sopenharmony_ci<p>In most cases, a caller likely only wants to disable a single code, not the whole type. Use <a class="el" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de" title="Forcibly disable an event code on this device, even if the underlying device provides it.">libevdev_disable_event_code()</a> for that.</p>
269c0abf9e6Sopenharmony_ci<p>Disabling EV_SYN will not work. Don't shoot yourself in the foot. It hurts.</p>
270c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device.</p>
271c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
272c0abf9e6Sopenharmony_ci  <table class="params">
273c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
274c0abf9e6Sopenharmony_ci    <tr><td class="paramname">type</td><td>The event type to disable (EV_ABS, EV_KEY, ...)</td></tr>
275c0abf9e6Sopenharmony_ci  </table>
276c0abf9e6Sopenharmony_ci  </dd>
277c0abf9e6Sopenharmony_ci</dl>
278c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
279c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a> </dd>
280c0abf9e6Sopenharmony_ci<dd>
281c0abf9e6Sopenharmony_ci<a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type</a> </dd></dl>
282c0abf9e6Sopenharmony_ci
283c0abf9e6Sopenharmony_ci</div>
284c0abf9e6Sopenharmony_ci</div>
285c0abf9e6Sopenharmony_ci<a id="ga8f6367c36331c803ad69b2591e210019"></a>
286c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga8f6367c36331c803ad69b2591e210019">&#9670;&nbsp;</a></span>libevdev_disable_property()</h2>
287c0abf9e6Sopenharmony_ci
288c0abf9e6Sopenharmony_ci<div class="memitem">
289c0abf9e6Sopenharmony_ci<div class="memproto">
290c0abf9e6Sopenharmony_ci      <table class="memname">
291c0abf9e6Sopenharmony_ci        <tr>
292c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_disable_property </td>
293c0abf9e6Sopenharmony_ci          <td>(</td>
294c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
295c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
296c0abf9e6Sopenharmony_ci        </tr>
297c0abf9e6Sopenharmony_ci        <tr>
298c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
299c0abf9e6Sopenharmony_ci          <td></td>
300c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
301c0abf9e6Sopenharmony_ci          <td class="paramname"><em>prop</em>&#160;</td>
302c0abf9e6Sopenharmony_ci        </tr>
303c0abf9e6Sopenharmony_ci        <tr>
304c0abf9e6Sopenharmony_ci          <td></td>
305c0abf9e6Sopenharmony_ci          <td>)</td>
306c0abf9e6Sopenharmony_ci          <td></td><td></td>
307c0abf9e6Sopenharmony_ci        </tr>
308c0abf9e6Sopenharmony_ci      </table>
309c0abf9e6Sopenharmony_ci</div><div class="memdoc">
310c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
311c0abf9e6Sopenharmony_ci  <table class="params">
312c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
313c0abf9e6Sopenharmony_ci    <tr><td class="paramname">prop</td><td>The input property to disable, one of INPUT_PROP_...</td></tr>
314c0abf9e6Sopenharmony_ci  </table>
315c0abf9e6Sopenharmony_ci  </dd>
316c0abf9e6Sopenharmony_ci</dl>
317c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 on failure </dd></dl>
318c0abf9e6Sopenharmony_ci
319c0abf9e6Sopenharmony_ci</div>
320c0abf9e6Sopenharmony_ci</div>
321c0abf9e6Sopenharmony_ci<a id="ga51cfda33fd526549046399aadd764fca"></a>
322c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga51cfda33fd526549046399aadd764fca">&#9670;&nbsp;</a></span>libevdev_enable_event_code()</h2>
323c0abf9e6Sopenharmony_ci
324c0abf9e6Sopenharmony_ci<div class="memitem">
325c0abf9e6Sopenharmony_ci<div class="memproto">
326c0abf9e6Sopenharmony_ci      <table class="memname">
327c0abf9e6Sopenharmony_ci        <tr>
328c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_enable_event_code </td>
329c0abf9e6Sopenharmony_ci          <td>(</td>
330c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
331c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
332c0abf9e6Sopenharmony_ci        </tr>
333c0abf9e6Sopenharmony_ci        <tr>
334c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
335c0abf9e6Sopenharmony_ci          <td></td>
336c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
337c0abf9e6Sopenharmony_ci          <td class="paramname"><em>type</em>, </td>
338c0abf9e6Sopenharmony_ci        </tr>
339c0abf9e6Sopenharmony_ci        <tr>
340c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
341c0abf9e6Sopenharmony_ci          <td></td>
342c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
343c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
344c0abf9e6Sopenharmony_ci        </tr>
345c0abf9e6Sopenharmony_ci        <tr>
346c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
347c0abf9e6Sopenharmony_ci          <td></td>
348c0abf9e6Sopenharmony_ci          <td class="paramtype">const void *&#160;</td>
349c0abf9e6Sopenharmony_ci          <td class="paramname"><em>data</em>&#160;</td>
350c0abf9e6Sopenharmony_ci        </tr>
351c0abf9e6Sopenharmony_ci        <tr>
352c0abf9e6Sopenharmony_ci          <td></td>
353c0abf9e6Sopenharmony_ci          <td>)</td>
354c0abf9e6Sopenharmony_ci          <td></td><td></td>
355c0abf9e6Sopenharmony_ci        </tr>
356c0abf9e6Sopenharmony_ci      </table>
357c0abf9e6Sopenharmony_ci</div><div class="memdoc">
358c0abf9e6Sopenharmony_ci
359c0abf9e6Sopenharmony_ci<p>Forcibly enable an event code on this device, even if the underlying device does not support it. </p>
360c0abf9e6Sopenharmony_ci<p>While this cannot make the device actually report such events, it will now return true for <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a>.</p>
361c0abf9e6Sopenharmony_ci<p>The last argument depends on the type and code:</p><ul>
362c0abf9e6Sopenharmony_ci<li>If type is EV_ABS, data must be a pointer to a struct input_absinfo containing the data for this axis.</li>
363c0abf9e6Sopenharmony_ci<li>If type is EV_REP, data must be a pointer to a int containing the data for this axis</li>
364c0abf9e6Sopenharmony_ci<li>For all other types, the argument must be NULL.</li>
365c0abf9e6Sopenharmony_ci</ul>
366c0abf9e6Sopenharmony_ci<p>This function calls <a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca" title="Forcibly enable an event type on this device, even if the underlying device does not support it.">libevdev_enable_event_type()</a> if necessary.</p>
367c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device.</p>
368c0abf9e6Sopenharmony_ci<p>If this function is called with a type of EV_ABS and EV_REP on a device that already has the given event code enabled, the values in data overwrite the previous values.</p>
369c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
370c0abf9e6Sopenharmony_ci  <table class="params">
371c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
372c0abf9e6Sopenharmony_ci    <tr><td class="paramname">type</td><td>The event type to enable (EV_ABS, EV_KEY, ...) </td></tr>
373c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The event code to enable (ABS_X, REL_X, etc.) </td></tr>
374c0abf9e6Sopenharmony_ci    <tr><td class="paramname">data</td><td>If type is EV_ABS, data points to a struct input_absinfo. If type is EV_REP, data points to an integer. Otherwise, data must be NULL.</td></tr>
375c0abf9e6Sopenharmony_ci  </table>
376c0abf9e6Sopenharmony_ci  </dd>
377c0abf9e6Sopenharmony_ci</dl>
378c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
379c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca" title="Forcibly enable an event type on this device, even if the underlying device does not support it.">libevdev_enable_event_type</a> </dd></dl>
380c0abf9e6Sopenharmony_ci
381c0abf9e6Sopenharmony_ci</div>
382c0abf9e6Sopenharmony_ci</div>
383c0abf9e6Sopenharmony_ci<a id="ga59ef78b1557f9543d0060ab25b0167ca"></a>
384c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga59ef78b1557f9543d0060ab25b0167ca">&#9670;&nbsp;</a></span>libevdev_enable_event_type()</h2>
385c0abf9e6Sopenharmony_ci
386c0abf9e6Sopenharmony_ci<div class="memitem">
387c0abf9e6Sopenharmony_ci<div class="memproto">
388c0abf9e6Sopenharmony_ci      <table class="memname">
389c0abf9e6Sopenharmony_ci        <tr>
390c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_enable_event_type </td>
391c0abf9e6Sopenharmony_ci          <td>(</td>
392c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
393c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
394c0abf9e6Sopenharmony_ci        </tr>
395c0abf9e6Sopenharmony_ci        <tr>
396c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
397c0abf9e6Sopenharmony_ci          <td></td>
398c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
399c0abf9e6Sopenharmony_ci          <td class="paramname"><em>type</em>&#160;</td>
400c0abf9e6Sopenharmony_ci        </tr>
401c0abf9e6Sopenharmony_ci        <tr>
402c0abf9e6Sopenharmony_ci          <td></td>
403c0abf9e6Sopenharmony_ci          <td>)</td>
404c0abf9e6Sopenharmony_ci          <td></td><td></td>
405c0abf9e6Sopenharmony_ci        </tr>
406c0abf9e6Sopenharmony_ci      </table>
407c0abf9e6Sopenharmony_ci</div><div class="memdoc">
408c0abf9e6Sopenharmony_ci
409c0abf9e6Sopenharmony_ci<p>Forcibly enable an event type on this device, even if the underlying device does not support it. </p>
410c0abf9e6Sopenharmony_ci<p>While this cannot make the device actually report such events, it will now return true for <a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type()</a>.</p>
411c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device.</p>
412c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
413c0abf9e6Sopenharmony_ci  <table class="params">
414c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
415c0abf9e6Sopenharmony_ci    <tr><td class="paramname">type</td><td>The event type to enable (EV_ABS, EV_KEY, ...)</td></tr>
416c0abf9e6Sopenharmony_ci  </table>
417c0abf9e6Sopenharmony_ci  </dd>
418c0abf9e6Sopenharmony_ci</dl>
419c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
420c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a> </dd></dl>
421c0abf9e6Sopenharmony_ci
422c0abf9e6Sopenharmony_ci</div>
423c0abf9e6Sopenharmony_ci</div>
424c0abf9e6Sopenharmony_ci<a id="gafc552080520c9d886452b05f3a1d75b6"></a>
425c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gafc552080520c9d886452b05f3a1d75b6">&#9670;&nbsp;</a></span>libevdev_enable_property()</h2>
426c0abf9e6Sopenharmony_ci
427c0abf9e6Sopenharmony_ci<div class="memitem">
428c0abf9e6Sopenharmony_ci<div class="memproto">
429c0abf9e6Sopenharmony_ci      <table class="memname">
430c0abf9e6Sopenharmony_ci        <tr>
431c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_enable_property </td>
432c0abf9e6Sopenharmony_ci          <td>(</td>
433c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
434c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
435c0abf9e6Sopenharmony_ci        </tr>
436c0abf9e6Sopenharmony_ci        <tr>
437c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
438c0abf9e6Sopenharmony_ci          <td></td>
439c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
440c0abf9e6Sopenharmony_ci          <td class="paramname"><em>prop</em>&#160;</td>
441c0abf9e6Sopenharmony_ci        </tr>
442c0abf9e6Sopenharmony_ci        <tr>
443c0abf9e6Sopenharmony_ci          <td></td>
444c0abf9e6Sopenharmony_ci          <td>)</td>
445c0abf9e6Sopenharmony_ci          <td></td><td></td>
446c0abf9e6Sopenharmony_ci        </tr>
447c0abf9e6Sopenharmony_ci      </table>
448c0abf9e6Sopenharmony_ci</div><div class="memdoc">
449c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
450c0abf9e6Sopenharmony_ci  <table class="params">
451c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
452c0abf9e6Sopenharmony_ci    <tr><td class="paramname">prop</td><td>The input property to enable, one of INPUT_PROP_...</td></tr>
453c0abf9e6Sopenharmony_ci  </table>
454c0abf9e6Sopenharmony_ci  </dd>
455c0abf9e6Sopenharmony_ci</dl>
456c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 on failure</dd></dl>
457c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>
458c0abf9e6Sopenharmony_ci
459c0abf9e6Sopenharmony_ci</div>
460c0abf9e6Sopenharmony_ci</div>
461c0abf9e6Sopenharmony_ci<a id="ga41c0321b93349d0ddd1f1c007ccf7de9"></a>
462c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga41c0321b93349d0ddd1f1c007ccf7de9">&#9670;&nbsp;</a></span>libevdev_kernel_set_abs_info()</h2>
463c0abf9e6Sopenharmony_ci
464c0abf9e6Sopenharmony_ci<div class="memitem">
465c0abf9e6Sopenharmony_ci<div class="memproto">
466c0abf9e6Sopenharmony_ci      <table class="memname">
467c0abf9e6Sopenharmony_ci        <tr>
468c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_kernel_set_abs_info </td>
469c0abf9e6Sopenharmony_ci          <td>(</td>
470c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
471c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
472c0abf9e6Sopenharmony_ci        </tr>
473c0abf9e6Sopenharmony_ci        <tr>
474c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
475c0abf9e6Sopenharmony_ci          <td></td>
476c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
477c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
478c0abf9e6Sopenharmony_ci        </tr>
479c0abf9e6Sopenharmony_ci        <tr>
480c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
481c0abf9e6Sopenharmony_ci          <td></td>
482c0abf9e6Sopenharmony_ci          <td class="paramtype">const struct input_absinfo *&#160;</td>
483c0abf9e6Sopenharmony_ci          <td class="paramname"><em>abs</em>&#160;</td>
484c0abf9e6Sopenharmony_ci        </tr>
485c0abf9e6Sopenharmony_ci        <tr>
486c0abf9e6Sopenharmony_ci          <td></td>
487c0abf9e6Sopenharmony_ci          <td>)</td>
488c0abf9e6Sopenharmony_ci          <td></td><td></td>
489c0abf9e6Sopenharmony_ci        </tr>
490c0abf9e6Sopenharmony_ci      </table>
491c0abf9e6Sopenharmony_ci</div><div class="memdoc">
492c0abf9e6Sopenharmony_ci
493c0abf9e6Sopenharmony_ci<p>Set the device's EV_ABS axis to the value defined in the abs parameter. </p>
494c0abf9e6Sopenharmony_ci<p>This will be written to the kernel.</p>
495c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
496c0abf9e6Sopenharmony_ci  <table class="params">
497c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
498c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The EV_ABS event code to modify, one of ABS_X, ABS_Y, etc. </td></tr>
499c0abf9e6Sopenharmony_ci    <tr><td class="paramname">abs</td><td>Axis info to set the kernel axis to</td></tr>
500c0abf9e6Sopenharmony_ci  </table>
501c0abf9e6Sopenharmony_ci  </dd>
502c0abf9e6Sopenharmony_ci</dl>
503c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure</dd></dl>
504c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca" title="Forcibly enable an event code on this device, even if the underlying device does not support it.">libevdev_enable_event_code</a> </dd></dl>
505c0abf9e6Sopenharmony_ci
506c0abf9e6Sopenharmony_ci</div>
507c0abf9e6Sopenharmony_ci</div>
508c0abf9e6Sopenharmony_ci<a id="gaa7d13aeac3c40e16f296467780e67c01"></a>
509c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gaa7d13aeac3c40e16f296467780e67c01">&#9670;&nbsp;</a></span>libevdev_kernel_set_led_value()</h2>
510c0abf9e6Sopenharmony_ci
511c0abf9e6Sopenharmony_ci<div class="memitem">
512c0abf9e6Sopenharmony_ci<div class="memproto">
513c0abf9e6Sopenharmony_ci      <table class="memname">
514c0abf9e6Sopenharmony_ci        <tr>
515c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_kernel_set_led_value </td>
516c0abf9e6Sopenharmony_ci          <td>(</td>
517c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
518c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
519c0abf9e6Sopenharmony_ci        </tr>
520c0abf9e6Sopenharmony_ci        <tr>
521c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
522c0abf9e6Sopenharmony_ci          <td></td>
523c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
524c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
525c0abf9e6Sopenharmony_ci        </tr>
526c0abf9e6Sopenharmony_ci        <tr>
527c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
528c0abf9e6Sopenharmony_ci          <td></td>
529c0abf9e6Sopenharmony_ci          <td class="paramtype">enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a>&#160;</td>
530c0abf9e6Sopenharmony_ci          <td class="paramname"><em>value</em>&#160;</td>
531c0abf9e6Sopenharmony_ci        </tr>
532c0abf9e6Sopenharmony_ci        <tr>
533c0abf9e6Sopenharmony_ci          <td></td>
534c0abf9e6Sopenharmony_ci          <td>)</td>
535c0abf9e6Sopenharmony_ci          <td></td><td></td>
536c0abf9e6Sopenharmony_ci        </tr>
537c0abf9e6Sopenharmony_ci      </table>
538c0abf9e6Sopenharmony_ci</div><div class="memdoc">
539c0abf9e6Sopenharmony_ci
540c0abf9e6Sopenharmony_ci<p>Turn an LED on or off. </p>
541c0abf9e6Sopenharmony_ci<p>Convenience function, if you need to modify multiple LEDs simultaneously, use <a class="el" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00" title="Turn multiple LEDs on or off simultaneously.">libevdev_kernel_set_led_values()</a> instead.</p>
542c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>enabling an LED requires write permissions on the device's file descriptor.</dd></dl>
543c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
544c0abf9e6Sopenharmony_ci  <table class="params">
545c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
546c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The EV_LED event code to modify, one of LED_NUML, LED_CAPSL, ... </td></tr>
547c0abf9e6Sopenharmony_ci    <tr><td class="paramname">value</td><td>Specifies whether to turn the LED on or off </td></tr>
548c0abf9e6Sopenharmony_ci  </table>
549c0abf9e6Sopenharmony_ci  </dd>
550c0abf9e6Sopenharmony_ci</dl>
551c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>
552c0abf9e6Sopenharmony_ci
553c0abf9e6Sopenharmony_ci</div>
554c0abf9e6Sopenharmony_ci</div>
555c0abf9e6Sopenharmony_ci<a id="ga93a19fa6e5be57903aff7c4a60af2a00"></a>
556c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga93a19fa6e5be57903aff7c4a60af2a00">&#9670;&nbsp;</a></span>libevdev_kernel_set_led_values()</h2>
557c0abf9e6Sopenharmony_ci
558c0abf9e6Sopenharmony_ci<div class="memitem">
559c0abf9e6Sopenharmony_ci<div class="memproto">
560c0abf9e6Sopenharmony_ci      <table class="memname">
561c0abf9e6Sopenharmony_ci        <tr>
562c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_kernel_set_led_values </td>
563c0abf9e6Sopenharmony_ci          <td>(</td>
564c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
565c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
566c0abf9e6Sopenharmony_ci        </tr>
567c0abf9e6Sopenharmony_ci        <tr>
568c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
569c0abf9e6Sopenharmony_ci          <td></td>
570c0abf9e6Sopenharmony_ci          <td class="paramtype">&#160;</td>
571c0abf9e6Sopenharmony_ci          <td class="paramname"><em>...</em>&#160;</td>
572c0abf9e6Sopenharmony_ci        </tr>
573c0abf9e6Sopenharmony_ci        <tr>
574c0abf9e6Sopenharmony_ci          <td></td>
575c0abf9e6Sopenharmony_ci          <td>)</td>
576c0abf9e6Sopenharmony_ci          <td></td><td></td>
577c0abf9e6Sopenharmony_ci        </tr>
578c0abf9e6Sopenharmony_ci      </table>
579c0abf9e6Sopenharmony_ci</div><div class="memdoc">
580c0abf9e6Sopenharmony_ci
581c0abf9e6Sopenharmony_ci<p>Turn multiple LEDs on or off simultaneously. </p>
582c0abf9e6Sopenharmony_ci<p>This function expects a pair of LED codes and values to set them to, terminated by a -1. For example, to switch the NumLock LED on but the CapsLock LED off, use:</p>
583c0abf9e6Sopenharmony_ci<div class="fragment"><div class="line"><a class="code" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a>(dev, LED_NUML, <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a>,</div>
584c0abf9e6Sopenharmony_ci<div class="line">                                    LED_CAPSL, <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a>,</div>
585c0abf9e6Sopenharmony_ci<div class="line">                                    -1);</div>
586c0abf9e6Sopenharmony_ci<div class="ttc" id="agroup__kernel_html_ga93a19fa6e5be57903aff7c4a60af2a00"><div class="ttname"><a href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a></div><div class="ttdeci">int libevdev_kernel_set_led_values(struct libevdev *dev,...)</div><div class="ttdoc">Turn multiple LEDs on or off simultaneously.</div></div>
587c0abf9e6Sopenharmony_ci<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a></div><div class="ttdeci">@ LIBEVDEV_LED_OFF</div><div class="ttdoc">Turn the LED off.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1921</div></div>
588c0abf9e6Sopenharmony_ci<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a></div><div class="ttdeci">@ LIBEVDEV_LED_ON</div><div class="ttdoc">Turn the LED on.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1920</div></div>
589c0abf9e6Sopenharmony_ci</div><!-- fragment --><p>If any LED code or value is invalid, this function returns -EINVAL and no LEDs are modified.</p>
590c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>enabling an LED requires write permissions on the device's file descriptor.</dd></dl>
591c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
592c0abf9e6Sopenharmony_ci  <table class="params">
593c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
594c0abf9e6Sopenharmony_ci    <tr><td class="paramname">...</td><td>A pair of LED_* event codes and libevdev_led_value_t, followed by -1 to terminate the list. </td></tr>
595c0abf9e6Sopenharmony_ci  </table>
596c0abf9e6Sopenharmony_ci  </dd>
597c0abf9e6Sopenharmony_ci</dl>
598c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>
599c0abf9e6Sopenharmony_ci
600c0abf9e6Sopenharmony_ci</div>
601c0abf9e6Sopenharmony_ci</div>
602c0abf9e6Sopenharmony_ci<a id="gabd309f30744a49e9391250b00ba2d67a"></a>
603c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gabd309f30744a49e9391250b00ba2d67a">&#9670;&nbsp;</a></span>libevdev_set_abs_flat()</h2>
604c0abf9e6Sopenharmony_ci
605c0abf9e6Sopenharmony_ci<div class="memitem">
606c0abf9e6Sopenharmony_ci<div class="memproto">
607c0abf9e6Sopenharmony_ci      <table class="memname">
608c0abf9e6Sopenharmony_ci        <tr>
609c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_flat </td>
610c0abf9e6Sopenharmony_ci          <td>(</td>
611c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
612c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
613c0abf9e6Sopenharmony_ci        </tr>
614c0abf9e6Sopenharmony_ci        <tr>
615c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
616c0abf9e6Sopenharmony_ci          <td></td>
617c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
618c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
619c0abf9e6Sopenharmony_ci        </tr>
620c0abf9e6Sopenharmony_ci        <tr>
621c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
622c0abf9e6Sopenharmony_ci          <td></td>
623c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
624c0abf9e6Sopenharmony_ci          <td class="paramname"><em>val</em>&#160;</td>
625c0abf9e6Sopenharmony_ci        </tr>
626c0abf9e6Sopenharmony_ci        <tr>
627c0abf9e6Sopenharmony_ci          <td></td>
628c0abf9e6Sopenharmony_ci          <td>)</td>
629c0abf9e6Sopenharmony_ci          <td></td><td></td>
630c0abf9e6Sopenharmony_ci        </tr>
631c0abf9e6Sopenharmony_ci      </table>
632c0abf9e6Sopenharmony_ci</div><div class="memdoc">
633c0abf9e6Sopenharmony_ci
634c0abf9e6Sopenharmony_ci<p>Change the flat for the given EV_ABS event code, if the code exists. </p>
635c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
636c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
637c0abf9e6Sopenharmony_ci  <table class="params">
638c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
639c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
640c0abf9e6Sopenharmony_ci    <tr><td class="paramname">val</td><td>The new flat for this axis </td></tr>
641c0abf9e6Sopenharmony_ci  </table>
642c0abf9e6Sopenharmony_ci  </dd>
643c0abf9e6Sopenharmony_ci</dl>
644c0abf9e6Sopenharmony_ci
645c0abf9e6Sopenharmony_ci</div>
646c0abf9e6Sopenharmony_ci</div>
647c0abf9e6Sopenharmony_ci<a id="gaa192bf0c68620be819337da6ec361c21"></a>
648c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gaa192bf0c68620be819337da6ec361c21">&#9670;&nbsp;</a></span>libevdev_set_abs_fuzz()</h2>
649c0abf9e6Sopenharmony_ci
650c0abf9e6Sopenharmony_ci<div class="memitem">
651c0abf9e6Sopenharmony_ci<div class="memproto">
652c0abf9e6Sopenharmony_ci      <table class="memname">
653c0abf9e6Sopenharmony_ci        <tr>
654c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_fuzz </td>
655c0abf9e6Sopenharmony_ci          <td>(</td>
656c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
657c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
658c0abf9e6Sopenharmony_ci        </tr>
659c0abf9e6Sopenharmony_ci        <tr>
660c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
661c0abf9e6Sopenharmony_ci          <td></td>
662c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
663c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
664c0abf9e6Sopenharmony_ci        </tr>
665c0abf9e6Sopenharmony_ci        <tr>
666c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
667c0abf9e6Sopenharmony_ci          <td></td>
668c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
669c0abf9e6Sopenharmony_ci          <td class="paramname"><em>val</em>&#160;</td>
670c0abf9e6Sopenharmony_ci        </tr>
671c0abf9e6Sopenharmony_ci        <tr>
672c0abf9e6Sopenharmony_ci          <td></td>
673c0abf9e6Sopenharmony_ci          <td>)</td>
674c0abf9e6Sopenharmony_ci          <td></td><td></td>
675c0abf9e6Sopenharmony_ci        </tr>
676c0abf9e6Sopenharmony_ci      </table>
677c0abf9e6Sopenharmony_ci</div><div class="memdoc">
678c0abf9e6Sopenharmony_ci
679c0abf9e6Sopenharmony_ci<p>Change the fuzz for the given EV_ABS event code, if the code exists. </p>
680c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
681c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
682c0abf9e6Sopenharmony_ci  <table class="params">
683c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
684c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
685c0abf9e6Sopenharmony_ci    <tr><td class="paramname">val</td><td>The new fuzz for this axis </td></tr>
686c0abf9e6Sopenharmony_ci  </table>
687c0abf9e6Sopenharmony_ci  </dd>
688c0abf9e6Sopenharmony_ci</dl>
689c0abf9e6Sopenharmony_ci
690c0abf9e6Sopenharmony_ci</div>
691c0abf9e6Sopenharmony_ci</div>
692c0abf9e6Sopenharmony_ci<a id="gafc7a4f5308e2dbf55f875630b8dca049"></a>
693c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gafc7a4f5308e2dbf55f875630b8dca049">&#9670;&nbsp;</a></span>libevdev_set_abs_info()</h2>
694c0abf9e6Sopenharmony_ci
695c0abf9e6Sopenharmony_ci<div class="memitem">
696c0abf9e6Sopenharmony_ci<div class="memproto">
697c0abf9e6Sopenharmony_ci      <table class="memname">
698c0abf9e6Sopenharmony_ci        <tr>
699c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_info </td>
700c0abf9e6Sopenharmony_ci          <td>(</td>
701c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
702c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
703c0abf9e6Sopenharmony_ci        </tr>
704c0abf9e6Sopenharmony_ci        <tr>
705c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
706c0abf9e6Sopenharmony_ci          <td></td>
707c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
708c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
709c0abf9e6Sopenharmony_ci        </tr>
710c0abf9e6Sopenharmony_ci        <tr>
711c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
712c0abf9e6Sopenharmony_ci          <td></td>
713c0abf9e6Sopenharmony_ci          <td class="paramtype">const struct input_absinfo *&#160;</td>
714c0abf9e6Sopenharmony_ci          <td class="paramname"><em>abs</em>&#160;</td>
715c0abf9e6Sopenharmony_ci        </tr>
716c0abf9e6Sopenharmony_ci        <tr>
717c0abf9e6Sopenharmony_ci          <td></td>
718c0abf9e6Sopenharmony_ci          <td>)</td>
719c0abf9e6Sopenharmony_ci          <td></td><td></td>
720c0abf9e6Sopenharmony_ci        </tr>
721c0abf9e6Sopenharmony_ci      </table>
722c0abf9e6Sopenharmony_ci</div><div class="memdoc">
723c0abf9e6Sopenharmony_ci
724c0abf9e6Sopenharmony_ci<p>Change the abs info for the given EV_ABS event code, if the code exists. </p>
725c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
726c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
727c0abf9e6Sopenharmony_ci  <table class="params">
728c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
729c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
730c0abf9e6Sopenharmony_ci    <tr><td class="paramname">abs</td><td>The new absolute axis data (min, max, fuzz, flat, resolution) </td></tr>
731c0abf9e6Sopenharmony_ci  </table>
732c0abf9e6Sopenharmony_ci  </dd>
733c0abf9e6Sopenharmony_ci</dl>
734c0abf9e6Sopenharmony_ci
735c0abf9e6Sopenharmony_ci</div>
736c0abf9e6Sopenharmony_ci</div>
737c0abf9e6Sopenharmony_ci<a id="ga2302fd9a491d8e27280157d67a703af6"></a>
738c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga2302fd9a491d8e27280157d67a703af6">&#9670;&nbsp;</a></span>libevdev_set_abs_maximum()</h2>
739c0abf9e6Sopenharmony_ci
740c0abf9e6Sopenharmony_ci<div class="memitem">
741c0abf9e6Sopenharmony_ci<div class="memproto">
742c0abf9e6Sopenharmony_ci      <table class="memname">
743c0abf9e6Sopenharmony_ci        <tr>
744c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_maximum </td>
745c0abf9e6Sopenharmony_ci          <td>(</td>
746c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
747c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
748c0abf9e6Sopenharmony_ci        </tr>
749c0abf9e6Sopenharmony_ci        <tr>
750c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
751c0abf9e6Sopenharmony_ci          <td></td>
752c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
753c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
754c0abf9e6Sopenharmony_ci        </tr>
755c0abf9e6Sopenharmony_ci        <tr>
756c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
757c0abf9e6Sopenharmony_ci          <td></td>
758c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
759c0abf9e6Sopenharmony_ci          <td class="paramname"><em>val</em>&#160;</td>
760c0abf9e6Sopenharmony_ci        </tr>
761c0abf9e6Sopenharmony_ci        <tr>
762c0abf9e6Sopenharmony_ci          <td></td>
763c0abf9e6Sopenharmony_ci          <td>)</td>
764c0abf9e6Sopenharmony_ci          <td></td><td></td>
765c0abf9e6Sopenharmony_ci        </tr>
766c0abf9e6Sopenharmony_ci      </table>
767c0abf9e6Sopenharmony_ci</div><div class="memdoc">
768c0abf9e6Sopenharmony_ci
769c0abf9e6Sopenharmony_ci<p>Change the maximum for the given EV_ABS event code, if the code exists. </p>
770c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
771c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
772c0abf9e6Sopenharmony_ci  <table class="params">
773c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
774c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
775c0abf9e6Sopenharmony_ci    <tr><td class="paramname">val</td><td>The new maxium for this axis </td></tr>
776c0abf9e6Sopenharmony_ci  </table>
777c0abf9e6Sopenharmony_ci  </dd>
778c0abf9e6Sopenharmony_ci</dl>
779c0abf9e6Sopenharmony_ci
780c0abf9e6Sopenharmony_ci</div>
781c0abf9e6Sopenharmony_ci</div>
782c0abf9e6Sopenharmony_ci<a id="gaca62172c2a823cd02eacf0d2292d917a"></a>
783c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gaca62172c2a823cd02eacf0d2292d917a">&#9670;&nbsp;</a></span>libevdev_set_abs_minimum()</h2>
784c0abf9e6Sopenharmony_ci
785c0abf9e6Sopenharmony_ci<div class="memitem">
786c0abf9e6Sopenharmony_ci<div class="memproto">
787c0abf9e6Sopenharmony_ci      <table class="memname">
788c0abf9e6Sopenharmony_ci        <tr>
789c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_minimum </td>
790c0abf9e6Sopenharmony_ci          <td>(</td>
791c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
792c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
793c0abf9e6Sopenharmony_ci        </tr>
794c0abf9e6Sopenharmony_ci        <tr>
795c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
796c0abf9e6Sopenharmony_ci          <td></td>
797c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
798c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
799c0abf9e6Sopenharmony_ci        </tr>
800c0abf9e6Sopenharmony_ci        <tr>
801c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
802c0abf9e6Sopenharmony_ci          <td></td>
803c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
804c0abf9e6Sopenharmony_ci          <td class="paramname"><em>val</em>&#160;</td>
805c0abf9e6Sopenharmony_ci        </tr>
806c0abf9e6Sopenharmony_ci        <tr>
807c0abf9e6Sopenharmony_ci          <td></td>
808c0abf9e6Sopenharmony_ci          <td>)</td>
809c0abf9e6Sopenharmony_ci          <td></td><td></td>
810c0abf9e6Sopenharmony_ci        </tr>
811c0abf9e6Sopenharmony_ci      </table>
812c0abf9e6Sopenharmony_ci</div><div class="memdoc">
813c0abf9e6Sopenharmony_ci
814c0abf9e6Sopenharmony_ci<p>Change the minimum for the given EV_ABS event code, if the code exists. </p>
815c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
816c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
817c0abf9e6Sopenharmony_ci  <table class="params">
818c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
819c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
820c0abf9e6Sopenharmony_ci    <tr><td class="paramname">val</td><td>The new minimum for this axis </td></tr>
821c0abf9e6Sopenharmony_ci  </table>
822c0abf9e6Sopenharmony_ci  </dd>
823c0abf9e6Sopenharmony_ci</dl>
824c0abf9e6Sopenharmony_ci
825c0abf9e6Sopenharmony_ci</div>
826c0abf9e6Sopenharmony_ci</div>
827c0abf9e6Sopenharmony_ci<a id="ga2266b59711cdaa4fc12fa56c9313a038"></a>
828c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga2266b59711cdaa4fc12fa56c9313a038">&#9670;&nbsp;</a></span>libevdev_set_abs_resolution()</h2>
829c0abf9e6Sopenharmony_ci
830c0abf9e6Sopenharmony_ci<div class="memitem">
831c0abf9e6Sopenharmony_ci<div class="memproto">
832c0abf9e6Sopenharmony_ci      <table class="memname">
833c0abf9e6Sopenharmony_ci        <tr>
834c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_abs_resolution </td>
835c0abf9e6Sopenharmony_ci          <td>(</td>
836c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
837c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
838c0abf9e6Sopenharmony_ci        </tr>
839c0abf9e6Sopenharmony_ci        <tr>
840c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
841c0abf9e6Sopenharmony_ci          <td></td>
842c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
843c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
844c0abf9e6Sopenharmony_ci        </tr>
845c0abf9e6Sopenharmony_ci        <tr>
846c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
847c0abf9e6Sopenharmony_ci          <td></td>
848c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
849c0abf9e6Sopenharmony_ci          <td class="paramname"><em>val</em>&#160;</td>
850c0abf9e6Sopenharmony_ci        </tr>
851c0abf9e6Sopenharmony_ci        <tr>
852c0abf9e6Sopenharmony_ci          <td></td>
853c0abf9e6Sopenharmony_ci          <td>)</td>
854c0abf9e6Sopenharmony_ci          <td></td><td></td>
855c0abf9e6Sopenharmony_ci        </tr>
856c0abf9e6Sopenharmony_ci      </table>
857c0abf9e6Sopenharmony_ci</div><div class="memdoc">
858c0abf9e6Sopenharmony_ci
859c0abf9e6Sopenharmony_ci<p>Change the resolution for the given EV_ABS event code, if the code exists. </p>
860c0abf9e6Sopenharmony_ci<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
861c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
862c0abf9e6Sopenharmony_ci  <table class="params">
863c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
864c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
865c0abf9e6Sopenharmony_ci    <tr><td class="paramname">val</td><td>The new axis resolution </td></tr>
866c0abf9e6Sopenharmony_ci  </table>
867c0abf9e6Sopenharmony_ci  </dd>
868c0abf9e6Sopenharmony_ci</dl>
869c0abf9e6Sopenharmony_ci
870c0abf9e6Sopenharmony_ci</div>
871c0abf9e6Sopenharmony_ci</div>
872c0abf9e6Sopenharmony_ci<a id="ga2925b6fbf8c7991ff2164424b840b82d"></a>
873c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga2925b6fbf8c7991ff2164424b840b82d">&#9670;&nbsp;</a></span>libevdev_set_clock_id()</h2>
874c0abf9e6Sopenharmony_ci
875c0abf9e6Sopenharmony_ci<div class="memitem">
876c0abf9e6Sopenharmony_ci<div class="memproto">
877c0abf9e6Sopenharmony_ci      <table class="memname">
878c0abf9e6Sopenharmony_ci        <tr>
879c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_set_clock_id </td>
880c0abf9e6Sopenharmony_ci          <td>(</td>
881c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
882c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
883c0abf9e6Sopenharmony_ci        </tr>
884c0abf9e6Sopenharmony_ci        <tr>
885c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
886c0abf9e6Sopenharmony_ci          <td></td>
887c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
888c0abf9e6Sopenharmony_ci          <td class="paramname"><em>clockid</em>&#160;</td>
889c0abf9e6Sopenharmony_ci        </tr>
890c0abf9e6Sopenharmony_ci        <tr>
891c0abf9e6Sopenharmony_ci          <td></td>
892c0abf9e6Sopenharmony_ci          <td>)</td>
893c0abf9e6Sopenharmony_ci          <td></td><td></td>
894c0abf9e6Sopenharmony_ci        </tr>
895c0abf9e6Sopenharmony_ci      </table>
896c0abf9e6Sopenharmony_ci</div><div class="memdoc">
897c0abf9e6Sopenharmony_ci
898c0abf9e6Sopenharmony_ci<p>Set the clock ID to be used for timestamps. </p>
899c0abf9e6Sopenharmony_ci<p>Further events from this device will report an event time based on the given clock.</p>
900c0abf9e6Sopenharmony_ci<p>This is a modification only affecting this representation of this device.</p>
901c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
902c0abf9e6Sopenharmony_ci  <table class="params">
903c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
904c0abf9e6Sopenharmony_ci    <tr><td class="paramname">clockid</td><td>The clock to use for future events. Permitted values are CLOCK_MONOTONIC and CLOCK_REALTIME (the default). </td></tr>
905c0abf9e6Sopenharmony_ci  </table>
906c0abf9e6Sopenharmony_ci  </dd>
907c0abf9e6Sopenharmony_ci</dl>
908c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>
909c0abf9e6Sopenharmony_ci
910c0abf9e6Sopenharmony_ci</div>
911c0abf9e6Sopenharmony_ci</div>
912c0abf9e6Sopenharmony_ci<a id="ga79e82ee2a95cb08adb4172aabe0c7184"></a>
913c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga79e82ee2a95cb08adb4172aabe0c7184">&#9670;&nbsp;</a></span>libevdev_set_event_value()</h2>
914c0abf9e6Sopenharmony_ci
915c0abf9e6Sopenharmony_ci<div class="memitem">
916c0abf9e6Sopenharmony_ci<div class="memproto">
917c0abf9e6Sopenharmony_ci      <table class="memname">
918c0abf9e6Sopenharmony_ci        <tr>
919c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_set_event_value </td>
920c0abf9e6Sopenharmony_ci          <td>(</td>
921c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
922c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
923c0abf9e6Sopenharmony_ci        </tr>
924c0abf9e6Sopenharmony_ci        <tr>
925c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
926c0abf9e6Sopenharmony_ci          <td></td>
927c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
928c0abf9e6Sopenharmony_ci          <td class="paramname"><em>type</em>, </td>
929c0abf9e6Sopenharmony_ci        </tr>
930c0abf9e6Sopenharmony_ci        <tr>
931c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
932c0abf9e6Sopenharmony_ci          <td></td>
933c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
934c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
935c0abf9e6Sopenharmony_ci        </tr>
936c0abf9e6Sopenharmony_ci        <tr>
937c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
938c0abf9e6Sopenharmony_ci          <td></td>
939c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
940c0abf9e6Sopenharmony_ci          <td class="paramname"><em>value</em>&#160;</td>
941c0abf9e6Sopenharmony_ci        </tr>
942c0abf9e6Sopenharmony_ci        <tr>
943c0abf9e6Sopenharmony_ci          <td></td>
944c0abf9e6Sopenharmony_ci          <td>)</td>
945c0abf9e6Sopenharmony_ci          <td></td><td></td>
946c0abf9e6Sopenharmony_ci        </tr>
947c0abf9e6Sopenharmony_ci      </table>
948c0abf9e6Sopenharmony_ci</div><div class="memdoc">
949c0abf9e6Sopenharmony_ci
950c0abf9e6Sopenharmony_ci<p>Set the value for a given event type and code. </p>
951c0abf9e6Sopenharmony_ci<p>This only makes sense for some event types, e.g. setting the value for EV_REL is pointless.</p>
952c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device. A future call to <a class="el" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3" title="Behaviour of this function is undefined if the device does not provide the event.">libevdev_get_event_value()</a> will return this value, unless the value was overwritten by an event.</p>
953c0abf9e6Sopenharmony_ci<p>If the device supports ABS_MT_SLOT, the value set for any ABS_MT_* event code is the value of the currently active slot. You should use <a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333" title="Set the value for a given code for the given slot.">libevdev_set_slot_value()</a> instead.</p>
954c0abf9e6Sopenharmony_ci<p>If the device supports ABS_MT_SLOT and the type is EV_ABS and the code is ABS_MT_SLOT, the value must be a positive number less then the number of slots on the device. Otherwise, <a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value()</a> returns -1.</p>
955c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
956c0abf9e6Sopenharmony_ci  <table class="params">
957c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
958c0abf9e6Sopenharmony_ci    <tr><td class="paramname">type</td><td>The event type for the code to query (EV_SYN, EV_REL, etc.) </td></tr>
959c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The event code to set the value for, one of ABS_X, LED_NUML, etc. </td></tr>
960c0abf9e6Sopenharmony_ci    <tr><td class="paramname">value</td><td>The new value to set</td></tr>
961c0abf9e6Sopenharmony_ci  </table>
962c0abf9e6Sopenharmony_ci  </dd>
963c0abf9e6Sopenharmony_ci</dl>
964c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or -1 on failure. </dd></dl>
965c0abf9e6Sopenharmony_ci<dl class="retval"><dt>Return values</dt><dd>
966c0abf9e6Sopenharmony_ci  <table class="retval">
967c0abf9e6Sopenharmony_ci    <tr><td class="paramname">-1</td><td><ul>
968c0abf9e6Sopenharmony_ci<li>the device does not have the event type or</li>
969c0abf9e6Sopenharmony_ci<li>code enabled, or the code is outside the, or</li>
970c0abf9e6Sopenharmony_ci<li>the code is outside the allowed limits for the given type, or</li>
971c0abf9e6Sopenharmony_ci<li>the type cannot be set, or</li>
972c0abf9e6Sopenharmony_ci<li>the value is not permitted for the given code.</li>
973c0abf9e6Sopenharmony_ci</ul>
974c0abf9e6Sopenharmony_ci</td></tr>
975c0abf9e6Sopenharmony_ci  </table>
976c0abf9e6Sopenharmony_ci  </dd>
977c0abf9e6Sopenharmony_ci</dl>
978c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333" title="Set the value for a given code for the given slot.">libevdev_set_slot_value</a> </dd>
979c0abf9e6Sopenharmony_ci<dd>
980c0abf9e6Sopenharmony_ci<a class="el" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3" title="Behaviour of this function is undefined if the device does not provide the event.">libevdev_get_event_value</a> </dd></dl>
981c0abf9e6Sopenharmony_ci
982c0abf9e6Sopenharmony_ci</div>
983c0abf9e6Sopenharmony_ci</div>
984c0abf9e6Sopenharmony_ci<a id="gaf99139c728ba1bd4b37ede612780b6b0"></a>
985c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gaf99139c728ba1bd4b37ede612780b6b0">&#9670;&nbsp;</a></span>libevdev_set_id_bustype()</h2>
986c0abf9e6Sopenharmony_ci
987c0abf9e6Sopenharmony_ci<div class="memitem">
988c0abf9e6Sopenharmony_ci<div class="memproto">
989c0abf9e6Sopenharmony_ci      <table class="memname">
990c0abf9e6Sopenharmony_ci        <tr>
991c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_id_bustype </td>
992c0abf9e6Sopenharmony_ci          <td>(</td>
993c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
994c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
995c0abf9e6Sopenharmony_ci        </tr>
996c0abf9e6Sopenharmony_ci        <tr>
997c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
998c0abf9e6Sopenharmony_ci          <td></td>
999c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
1000c0abf9e6Sopenharmony_ci          <td class="paramname"><em>bustype</em>&#160;</td>
1001c0abf9e6Sopenharmony_ci        </tr>
1002c0abf9e6Sopenharmony_ci        <tr>
1003c0abf9e6Sopenharmony_ci          <td></td>
1004c0abf9e6Sopenharmony_ci          <td>)</td>
1005c0abf9e6Sopenharmony_ci          <td></td><td></td>
1006c0abf9e6Sopenharmony_ci        </tr>
1007c0abf9e6Sopenharmony_ci      </table>
1008c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1009c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1010c0abf9e6Sopenharmony_ci  <table class="params">
1011c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1012c0abf9e6Sopenharmony_ci    <tr><td class="paramname">bustype</td><td>The bustype to assign to this device</td></tr>
1013c0abf9e6Sopenharmony_ci  </table>
1014c0abf9e6Sopenharmony_ci  </dd>
1015c0abf9e6Sopenharmony_ci</dl>
1016c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for bustype the value is truncated at 16 bits. </dd></dl>
1017c0abf9e6Sopenharmony_ci
1018c0abf9e6Sopenharmony_ci</div>
1019c0abf9e6Sopenharmony_ci</div>
1020c0abf9e6Sopenharmony_ci<a id="ga62fbdaac056ab5c3db154a9eeaf33799"></a>
1021c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga62fbdaac056ab5c3db154a9eeaf33799">&#9670;&nbsp;</a></span>libevdev_set_id_product()</h2>
1022c0abf9e6Sopenharmony_ci
1023c0abf9e6Sopenharmony_ci<div class="memitem">
1024c0abf9e6Sopenharmony_ci<div class="memproto">
1025c0abf9e6Sopenharmony_ci      <table class="memname">
1026c0abf9e6Sopenharmony_ci        <tr>
1027c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_id_product </td>
1028c0abf9e6Sopenharmony_ci          <td>(</td>
1029c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1030c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1031c0abf9e6Sopenharmony_ci        </tr>
1032c0abf9e6Sopenharmony_ci        <tr>
1033c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1034c0abf9e6Sopenharmony_ci          <td></td>
1035c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
1036c0abf9e6Sopenharmony_ci          <td class="paramname"><em>product_id</em>&#160;</td>
1037c0abf9e6Sopenharmony_ci        </tr>
1038c0abf9e6Sopenharmony_ci        <tr>
1039c0abf9e6Sopenharmony_ci          <td></td>
1040c0abf9e6Sopenharmony_ci          <td>)</td>
1041c0abf9e6Sopenharmony_ci          <td></td><td></td>
1042c0abf9e6Sopenharmony_ci        </tr>
1043c0abf9e6Sopenharmony_ci      </table>
1044c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1045c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1046c0abf9e6Sopenharmony_ci  <table class="params">
1047c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1048c0abf9e6Sopenharmony_ci    <tr><td class="paramname">product_id</td><td>The product ID to assign to this device</td></tr>
1049c0abf9e6Sopenharmony_ci  </table>
1050c0abf9e6Sopenharmony_ci  </dd>
1051c0abf9e6Sopenharmony_ci</dl>
1052c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for product_id the value is truncated at 16 bits. </dd></dl>
1053c0abf9e6Sopenharmony_ci
1054c0abf9e6Sopenharmony_ci</div>
1055c0abf9e6Sopenharmony_ci</div>
1056c0abf9e6Sopenharmony_ci<a id="ga8ce28051ebbb73de1d04d782f4d0d6fe"></a>
1057c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga8ce28051ebbb73de1d04d782f4d0d6fe">&#9670;&nbsp;</a></span>libevdev_set_id_vendor()</h2>
1058c0abf9e6Sopenharmony_ci
1059c0abf9e6Sopenharmony_ci<div class="memitem">
1060c0abf9e6Sopenharmony_ci<div class="memproto">
1061c0abf9e6Sopenharmony_ci      <table class="memname">
1062c0abf9e6Sopenharmony_ci        <tr>
1063c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_id_vendor </td>
1064c0abf9e6Sopenharmony_ci          <td>(</td>
1065c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1066c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1067c0abf9e6Sopenharmony_ci        </tr>
1068c0abf9e6Sopenharmony_ci        <tr>
1069c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1070c0abf9e6Sopenharmony_ci          <td></td>
1071c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
1072c0abf9e6Sopenharmony_ci          <td class="paramname"><em>vendor_id</em>&#160;</td>
1073c0abf9e6Sopenharmony_ci        </tr>
1074c0abf9e6Sopenharmony_ci        <tr>
1075c0abf9e6Sopenharmony_ci          <td></td>
1076c0abf9e6Sopenharmony_ci          <td>)</td>
1077c0abf9e6Sopenharmony_ci          <td></td><td></td>
1078c0abf9e6Sopenharmony_ci        </tr>
1079c0abf9e6Sopenharmony_ci      </table>
1080c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1081c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1082c0abf9e6Sopenharmony_ci  <table class="params">
1083c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1084c0abf9e6Sopenharmony_ci    <tr><td class="paramname">vendor_id</td><td>The vendor ID to assign to this device</td></tr>
1085c0abf9e6Sopenharmony_ci  </table>
1086c0abf9e6Sopenharmony_ci  </dd>
1087c0abf9e6Sopenharmony_ci</dl>
1088c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for vendor_id the value is truncated at 16 bits. </dd></dl>
1089c0abf9e6Sopenharmony_ci
1090c0abf9e6Sopenharmony_ci</div>
1091c0abf9e6Sopenharmony_ci</div>
1092c0abf9e6Sopenharmony_ci<a id="gaee1d2db88b191ec21d5bf22dd4fe3055"></a>
1093c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gaee1d2db88b191ec21d5bf22dd4fe3055">&#9670;&nbsp;</a></span>libevdev_set_id_version()</h2>
1094c0abf9e6Sopenharmony_ci
1095c0abf9e6Sopenharmony_ci<div class="memitem">
1096c0abf9e6Sopenharmony_ci<div class="memproto">
1097c0abf9e6Sopenharmony_ci      <table class="memname">
1098c0abf9e6Sopenharmony_ci        <tr>
1099c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_id_version </td>
1100c0abf9e6Sopenharmony_ci          <td>(</td>
1101c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1102c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1103c0abf9e6Sopenharmony_ci        </tr>
1104c0abf9e6Sopenharmony_ci        <tr>
1105c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1106c0abf9e6Sopenharmony_ci          <td></td>
1107c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
1108c0abf9e6Sopenharmony_ci          <td class="paramname"><em>version</em>&#160;</td>
1109c0abf9e6Sopenharmony_ci        </tr>
1110c0abf9e6Sopenharmony_ci        <tr>
1111c0abf9e6Sopenharmony_ci          <td></td>
1112c0abf9e6Sopenharmony_ci          <td>)</td>
1113c0abf9e6Sopenharmony_ci          <td></td><td></td>
1114c0abf9e6Sopenharmony_ci        </tr>
1115c0abf9e6Sopenharmony_ci      </table>
1116c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1117c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1118c0abf9e6Sopenharmony_ci  <table class="params">
1119c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1120c0abf9e6Sopenharmony_ci    <tr><td class="paramname">version</td><td>The version to assign to this device</td></tr>
1121c0abf9e6Sopenharmony_ci  </table>
1122c0abf9e6Sopenharmony_ci  </dd>
1123c0abf9e6Sopenharmony_ci</dl>
1124c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for version the value is truncated at 16 bits. </dd></dl>
1125c0abf9e6Sopenharmony_ci
1126c0abf9e6Sopenharmony_ci</div>
1127c0abf9e6Sopenharmony_ci</div>
1128c0abf9e6Sopenharmony_ci<a id="gae5dcdb7678cdc9be4ab1989725b4ed32"></a>
1129c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gae5dcdb7678cdc9be4ab1989725b4ed32">&#9670;&nbsp;</a></span>libevdev_set_name()</h2>
1130c0abf9e6Sopenharmony_ci
1131c0abf9e6Sopenharmony_ci<div class="memitem">
1132c0abf9e6Sopenharmony_ci<div class="memproto">
1133c0abf9e6Sopenharmony_ci      <table class="memname">
1134c0abf9e6Sopenharmony_ci        <tr>
1135c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_name </td>
1136c0abf9e6Sopenharmony_ci          <td>(</td>
1137c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1138c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1139c0abf9e6Sopenharmony_ci        </tr>
1140c0abf9e6Sopenharmony_ci        <tr>
1141c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1142c0abf9e6Sopenharmony_ci          <td></td>
1143c0abf9e6Sopenharmony_ci          <td class="paramtype">const char *&#160;</td>
1144c0abf9e6Sopenharmony_ci          <td class="paramname"><em>name</em>&#160;</td>
1145c0abf9e6Sopenharmony_ci        </tr>
1146c0abf9e6Sopenharmony_ci        <tr>
1147c0abf9e6Sopenharmony_ci          <td></td>
1148c0abf9e6Sopenharmony_ci          <td>)</td>
1149c0abf9e6Sopenharmony_ci          <td></td><td></td>
1150c0abf9e6Sopenharmony_ci        </tr>
1151c0abf9e6Sopenharmony_ci      </table>
1152c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1153c0abf9e6Sopenharmony_ci
1154c0abf9e6Sopenharmony_ci<p>Change the device's name as returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>. </p>
1155c0abf9e6Sopenharmony_ci<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>, a caller must take care that no references are kept.</p>
1156c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1157c0abf9e6Sopenharmony_ci  <table class="params">
1158c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1159c0abf9e6Sopenharmony_ci    <tr><td class="paramname">name</td><td>The new, non-NULL, name to assign to this device.</td></tr>
1160c0abf9e6Sopenharmony_ci  </table>
1161c0abf9e6Sopenharmony_ci  </dd>
1162c0abf9e6Sopenharmony_ci</dl>
1163c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>
1164c0abf9e6Sopenharmony_ci
1165c0abf9e6Sopenharmony_ci</div>
1166c0abf9e6Sopenharmony_ci</div>
1167c0abf9e6Sopenharmony_ci<a id="gacd57c8d6ace8e0b1417809a9c1c67af3"></a>
1168c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#gacd57c8d6ace8e0b1417809a9c1c67af3">&#9670;&nbsp;</a></span>libevdev_set_phys()</h2>
1169c0abf9e6Sopenharmony_ci
1170c0abf9e6Sopenharmony_ci<div class="memitem">
1171c0abf9e6Sopenharmony_ci<div class="memproto">
1172c0abf9e6Sopenharmony_ci      <table class="memname">
1173c0abf9e6Sopenharmony_ci        <tr>
1174c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_phys </td>
1175c0abf9e6Sopenharmony_ci          <td>(</td>
1176c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1177c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1178c0abf9e6Sopenharmony_ci        </tr>
1179c0abf9e6Sopenharmony_ci        <tr>
1180c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1181c0abf9e6Sopenharmony_ci          <td></td>
1182c0abf9e6Sopenharmony_ci          <td class="paramtype">const char *&#160;</td>
1183c0abf9e6Sopenharmony_ci          <td class="paramname"><em>phys</em>&#160;</td>
1184c0abf9e6Sopenharmony_ci        </tr>
1185c0abf9e6Sopenharmony_ci        <tr>
1186c0abf9e6Sopenharmony_ci          <td></td>
1187c0abf9e6Sopenharmony_ci          <td>)</td>
1188c0abf9e6Sopenharmony_ci          <td></td><td></td>
1189c0abf9e6Sopenharmony_ci        </tr>
1190c0abf9e6Sopenharmony_ci      </table>
1191c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1192c0abf9e6Sopenharmony_ci
1193c0abf9e6Sopenharmony_ci<p>Change the device's physical location as returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>. </p>
1194c0abf9e6Sopenharmony_ci<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>, a caller must take care that no references are kept.</p>
1195c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1196c0abf9e6Sopenharmony_ci  <table class="params">
1197c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1198c0abf9e6Sopenharmony_ci    <tr><td class="paramname">phys</td><td>The new phys to assign to this device.</td></tr>
1199c0abf9e6Sopenharmony_ci  </table>
1200c0abf9e6Sopenharmony_ci  </dd>
1201c0abf9e6Sopenharmony_ci</dl>
1202c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>
1203c0abf9e6Sopenharmony_ci
1204c0abf9e6Sopenharmony_ci</div>
1205c0abf9e6Sopenharmony_ci</div>
1206c0abf9e6Sopenharmony_ci<a id="ga0c61f4919b03b0850529a50c37a20333"></a>
1207c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga0c61f4919b03b0850529a50c37a20333">&#9670;&nbsp;</a></span>libevdev_set_slot_value()</h2>
1208c0abf9e6Sopenharmony_ci
1209c0abf9e6Sopenharmony_ci<div class="memitem">
1210c0abf9e6Sopenharmony_ci<div class="memproto">
1211c0abf9e6Sopenharmony_ci      <table class="memname">
1212c0abf9e6Sopenharmony_ci        <tr>
1213c0abf9e6Sopenharmony_ci          <td class="memname">int libevdev_set_slot_value </td>
1214c0abf9e6Sopenharmony_ci          <td>(</td>
1215c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1216c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1217c0abf9e6Sopenharmony_ci        </tr>
1218c0abf9e6Sopenharmony_ci        <tr>
1219c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1220c0abf9e6Sopenharmony_ci          <td></td>
1221c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
1222c0abf9e6Sopenharmony_ci          <td class="paramname"><em>slot</em>, </td>
1223c0abf9e6Sopenharmony_ci        </tr>
1224c0abf9e6Sopenharmony_ci        <tr>
1225c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1226c0abf9e6Sopenharmony_ci          <td></td>
1227c0abf9e6Sopenharmony_ci          <td class="paramtype">unsigned int&#160;</td>
1228c0abf9e6Sopenharmony_ci          <td class="paramname"><em>code</em>, </td>
1229c0abf9e6Sopenharmony_ci        </tr>
1230c0abf9e6Sopenharmony_ci        <tr>
1231c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1232c0abf9e6Sopenharmony_ci          <td></td>
1233c0abf9e6Sopenharmony_ci          <td class="paramtype">int&#160;</td>
1234c0abf9e6Sopenharmony_ci          <td class="paramname"><em>value</em>&#160;</td>
1235c0abf9e6Sopenharmony_ci        </tr>
1236c0abf9e6Sopenharmony_ci        <tr>
1237c0abf9e6Sopenharmony_ci          <td></td>
1238c0abf9e6Sopenharmony_ci          <td>)</td>
1239c0abf9e6Sopenharmony_ci          <td></td><td></td>
1240c0abf9e6Sopenharmony_ci        </tr>
1241c0abf9e6Sopenharmony_ci      </table>
1242c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1243c0abf9e6Sopenharmony_ci
1244c0abf9e6Sopenharmony_ci<p>Set the value for a given code for the given slot. </p>
1245c0abf9e6Sopenharmony_ci<p>This is a local modification only affecting only this representation of this device. A future call to <a class="el" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8" title="Return the current value of the code for the given slot.">libevdev_get_slot_value()</a> will return this value, unless the value was overwritten by an event.</p>
1246c0abf9e6Sopenharmony_ci<p>This function does not set event values for axes outside the ABS_MT range, use <a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value()</a> instead.</p>
1247c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1248c0abf9e6Sopenharmony_ci  <table class="params">
1249c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
1250c0abf9e6Sopenharmony_ci    <tr><td class="paramname">slot</td><td>The numerical slot number, must be smaller than the total number of slots on this device </td></tr>
1251c0abf9e6Sopenharmony_ci    <tr><td class="paramname">code</td><td>The event code to set the value for, one of ABS_MT_POSITION_X, etc. </td></tr>
1252c0abf9e6Sopenharmony_ci    <tr><td class="paramname">value</td><td>The new value to set</td></tr>
1253c0abf9e6Sopenharmony_ci  </table>
1254c0abf9e6Sopenharmony_ci  </dd>
1255c0abf9e6Sopenharmony_ci</dl>
1256c0abf9e6Sopenharmony_ci<dl class="section return"><dt>Returns</dt><dd>0 on success, or -1 on failure. </dd></dl>
1257c0abf9e6Sopenharmony_ci<dl class="retval"><dt>Return values</dt><dd>
1258c0abf9e6Sopenharmony_ci  <table class="retval">
1259c0abf9e6Sopenharmony_ci    <tr><td class="paramname">-1</td><td><ul>
1260c0abf9e6Sopenharmony_ci<li>the device does not have the event code enabled, or</li>
1261c0abf9e6Sopenharmony_ci<li>the code is outside the allowed limits for multitouch events, or</li>
1262c0abf9e6Sopenharmony_ci<li>the slot number is outside the limits for this device, or</li>
1263c0abf9e6Sopenharmony_ci<li>the device does not support multitouch events.</li>
1264c0abf9e6Sopenharmony_ci</ul>
1265c0abf9e6Sopenharmony_ci</td></tr>
1266c0abf9e6Sopenharmony_ci  </table>
1267c0abf9e6Sopenharmony_ci  </dd>
1268c0abf9e6Sopenharmony_ci</dl>
1269c0abf9e6Sopenharmony_ci<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value</a> </dd>
1270c0abf9e6Sopenharmony_ci<dd>
1271c0abf9e6Sopenharmony_ci<a class="el" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8" title="Return the current value of the code for the given slot.">libevdev_get_slot_value</a> </dd></dl>
1272c0abf9e6Sopenharmony_ci
1273c0abf9e6Sopenharmony_ci</div>
1274c0abf9e6Sopenharmony_ci</div>
1275c0abf9e6Sopenharmony_ci<a id="ga4e4fd2627744fd5811c50c7403f27ad7"></a>
1276c0abf9e6Sopenharmony_ci<h2 class="memtitle"><span class="permalink"><a href="#ga4e4fd2627744fd5811c50c7403f27ad7">&#9670;&nbsp;</a></span>libevdev_set_uniq()</h2>
1277c0abf9e6Sopenharmony_ci
1278c0abf9e6Sopenharmony_ci<div class="memitem">
1279c0abf9e6Sopenharmony_ci<div class="memproto">
1280c0abf9e6Sopenharmony_ci      <table class="memname">
1281c0abf9e6Sopenharmony_ci        <tr>
1282c0abf9e6Sopenharmony_ci          <td class="memname">void libevdev_set_uniq </td>
1283c0abf9e6Sopenharmony_ci          <td>(</td>
1284c0abf9e6Sopenharmony_ci          <td class="paramtype">struct libevdev *&#160;</td>
1285c0abf9e6Sopenharmony_ci          <td class="paramname"><em>dev</em>, </td>
1286c0abf9e6Sopenharmony_ci        </tr>
1287c0abf9e6Sopenharmony_ci        <tr>
1288c0abf9e6Sopenharmony_ci          <td class="paramkey"></td>
1289c0abf9e6Sopenharmony_ci          <td></td>
1290c0abf9e6Sopenharmony_ci          <td class="paramtype">const char *&#160;</td>
1291c0abf9e6Sopenharmony_ci          <td class="paramname"><em>uniq</em>&#160;</td>
1292c0abf9e6Sopenharmony_ci        </tr>
1293c0abf9e6Sopenharmony_ci        <tr>
1294c0abf9e6Sopenharmony_ci          <td></td>
1295c0abf9e6Sopenharmony_ci          <td>)</td>
1296c0abf9e6Sopenharmony_ci          <td></td><td></td>
1297c0abf9e6Sopenharmony_ci        </tr>
1298c0abf9e6Sopenharmony_ci      </table>
1299c0abf9e6Sopenharmony_ci</div><div class="memdoc">
1300c0abf9e6Sopenharmony_ci
1301c0abf9e6Sopenharmony_ci<p>Change the device's unique identifier as returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>. </p>
1302c0abf9e6Sopenharmony_ci<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>, a caller must take care that no references are kept.</p>
1303c0abf9e6Sopenharmony_ci<dl class="params"><dt>Parameters</dt><dd>
1304c0abf9e6Sopenharmony_ci  <table class="params">
1305c0abf9e6Sopenharmony_ci    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
1306c0abf9e6Sopenharmony_ci    <tr><td class="paramname">uniq</td><td>The new uniq to assign to this device.</td></tr>
1307c0abf9e6Sopenharmony_ci  </table>
1308c0abf9e6Sopenharmony_ci  </dd>
1309c0abf9e6Sopenharmony_ci</dl>
1310c0abf9e6Sopenharmony_ci<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>
1311c0abf9e6Sopenharmony_ci
1312c0abf9e6Sopenharmony_ci</div>
1313c0abf9e6Sopenharmony_ci</div>
1314c0abf9e6Sopenharmony_ci</div><!-- contents -->
1315c0abf9e6Sopenharmony_ci<!-- HTML footer for doxygen 1.8.8-->
1316c0abf9e6Sopenharmony_ci<!-- start footer part -->
1317c0abf9e6Sopenharmony_ci</div>
1318c0abf9e6Sopenharmony_ci</div>
1319c0abf9e6Sopenharmony_ci</div>
1320c0abf9e6Sopenharmony_ci</div>
1321c0abf9e6Sopenharmony_ci</div>
1322c0abf9e6Sopenharmony_ci<hr class="footer"/><address class="footer"><small>
1323c0abf9e6Sopenharmony_ciGenerated by &#160;<a href="http://www.doxygen.org/index.html">
1324c0abf9e6Sopenharmony_ci<img class="footer" src="doxygen.png" alt="doxygen"/>
1325c0abf9e6Sopenharmony_ci</a> 1.9.1
1326c0abf9e6Sopenharmony_ci</small></address>
1327c0abf9e6Sopenharmony_ci</body>
1328c0abf9e6Sopenharmony_ci</html>
1329