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