\hypertarget{group__Ecore__Drm__Input__Group}{}\doxysection{Drm input handling}
\label{group__Ecore__Drm__Input__Group}\index{Drm input handling@{Drm input handling}}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga775f3326367939ac4b2119fd9987469d}\label{group__Ecore__Drm__Input__Group_ga775f3326367939ac4b2119fd9987469d}} 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} {\bfseries ecore\+\_\+drm\+\_\+inputs\+\_\+create} (\mbox{\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device}} $\ast$dev)
\item 
\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga5ad461f39365b5fdf4cb42e40b0c31fa}\label{group__Ecore__Drm__Input__Group_ga5ad461f39365b5fdf4cb42e40b0c31fa}} 
EAPI void {\bfseries ecore\+\_\+drm\+\_\+inputs\+\_\+destroy} (\mbox{\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device}} $\ast$dev)
\item 
\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga17be462e36b1ed438d28bd4c9720feb4}\label{group__Ecore__Drm__Input__Group_ga17be462e36b1ed438d28bd4c9720feb4}} 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} {\bfseries ecore\+\_\+drm\+\_\+inputs\+\_\+enable} (Ecore\+\_\+\+Drm\+\_\+\+Input $\ast$input)
\item 
\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga636700ab010380550c5c1914c3e6a4bc}\label{group__Ecore__Drm__Input__Group_ga636700ab010380550c5c1914c3e6a4bc}} 
EAPI void {\bfseries ecore\+\_\+drm\+\_\+inputs\+\_\+disable} (Ecore\+\_\+\+Drm\+\_\+\+Input $\ast$input)
\item 
EAPI void \mbox{\hyperlink{group__Ecore__Drm__Input__Group_ga9b416ea62b58fab5a4f611863e057309}{ecore\+\_\+drm\+\_\+inputs\+\_\+device\+\_\+axis\+\_\+size\+\_\+set}} (Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$dev, int w, int h)
\begin{DoxyCompactList}\small\item\em Set the axis size of the given device. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Drm__Input__Group_gab214e5b2f21780d0646aca2dc749493b}{ecore\+\_\+drm\+\_\+evdev\+\_\+key\+\_\+remap\+\_\+enable}} (Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$edev, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} enable)
\begin{DoxyCompactList}\small\item\em Enables key remap functionality on a Ecore\+\_\+\+Drm\+\_\+\+Evdev. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Drm__Input__Group_ga9b0e086c72403a0aa0de8d212c495598}{ecore\+\_\+drm\+\_\+evdev\+\_\+key\+\_\+remap\+\_\+set}} (Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$edev, int $\ast$from\+\_\+keys, int $\ast$to\+\_\+keys, int num)
\begin{DoxyCompactList}\small\item\em Sets a given set of keys as remapped keys on a Ecore\+\_\+\+Drm\+\_\+\+Evdev. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga9b416ea62b58fab5a4f611863e057309}\label{group__Ecore__Drm__Input__Group_ga9b416ea62b58fab5a4f611863e057309}} 
\index{Drm input handling@{Drm input handling}!ecore\_drm\_inputs\_device\_axis\_size\_set@{ecore\_drm\_inputs\_device\_axis\_size\_set}}
\index{ecore\_drm\_inputs\_device\_axis\_size\_set@{ecore\_drm\_inputs\_device\_axis\_size\_set}!Drm input handling@{Drm input handling}}
\doxysubsubsection{\texorpdfstring{ecore\_drm\_inputs\_device\_axis\_size\_set()}{ecore\_drm\_inputs\_device\_axis\_size\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+drm\+\_\+inputs\+\_\+device\+\_\+axis\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$}]{edev,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Set the axis size of the given device. 


\begin{DoxyParams}{Parameters}
{\em edev} & The device to set the axis size to. \\
\hline
{\em w} & The width of the axis. \\
\hline
{\em h} & The height of the axis.\\
\hline
\end{DoxyParams}
This function sets set the width {\ttfamily w} and height {\ttfamily h} of the axis of device {\ttfamily dev}. If {\ttfamily dev} is a relative input device, a width and height must set for it. If its absolute set the ioctl correctly, if not, unsupported device. 

References \mbox{\hyperlink{group__Eeze__Find_ga639c3968898038d64e4d63f50f534e4c}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+subsystem\+\_\+sysname()}}, \mbox{\hyperlink{group__Eeze__Syspath_ga06d99f31cbfe74e4739b214e9d2638f6}{eeze\+\_\+udev\+\_\+syspath\+\_\+get\+\_\+property()}}, \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}.

\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_gab214e5b2f21780d0646aca2dc749493b}\label{group__Ecore__Drm__Input__Group_gab214e5b2f21780d0646aca2dc749493b}} 
\index{Drm input handling@{Drm input handling}!ecore\_drm\_evdev\_key\_remap\_enable@{ecore\_drm\_evdev\_key\_remap\_enable}}
\index{ecore\_drm\_evdev\_key\_remap\_enable@{ecore\_drm\_evdev\_key\_remap\_enable}!Drm input handling@{Drm input handling}}
\doxysubsubsection{\texorpdfstring{ecore\_drm\_evdev\_key\_remap\_enable()}{ecore\_drm\_evdev\_key\_remap\_enable()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+drm\+\_\+evdev\+\_\+key\+\_\+remap\+\_\+enable (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$}]{edev,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{enable }\end{DoxyParamCaption})}



Enables key remap functionality on a Ecore\+\_\+\+Drm\+\_\+\+Evdev. 

This function will enable the key remap functionality to the given Ecore\+\_\+\+Drm\+\_\+\+Evdev


\begin{DoxyParams}{Parameters}
{\em edev} & The Ecore\+\_\+\+Drm\+\_\+\+Evdev to enable the key remap on \\
\hline
{\em enable} & A valid Eina\+\_\+\+Bool to enable or disable the key remap on the device\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+FALSE is returned if the Ecore\+\_\+\+Drm\+\_\+\+Evdev is not valid, or if no libinput device has been assigned to it yet. EINA\+\_\+\+TRUE will be returned if enabling key remap for this device succeeded.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17
\end{DoxySince}
Enables key remap functionality on a Ecore\+\_\+\+Drm\+\_\+\+Evdev.


\begin{DoxyParams}{Parameters}
{\em edev} & The Ecore\+\_\+\+Drm\+\_\+\+Evdev to enable the key remap on. \\
\hline
{\em enable} & An Eina\+\_\+\+Bool value to enable or disable the key remap on the device. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+FALSE is returned if the Ecore\+\_\+\+Drm\+\_\+\+Evdev is not valid, or if no libinput device has been assigned to it yet. EINA\+\_\+\+TRUE will be returned if enabling key remap for this device succeeded.
\end{DoxyReturn}
This function enables/disables key remap functionality with the given enable value. If the given enable value is EINA\+\_\+\+FALSE, the key remap functionality wil be disable and the existing hash table for remapping keys will be freed. 

References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga76829f09c99852b1536efc813d99fc78}{eina\+\_\+hash\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Drm__Input__Group_ga9b0e086c72403a0aa0de8d212c495598}\label{group__Ecore__Drm__Input__Group_ga9b0e086c72403a0aa0de8d212c495598}} 
\index{Drm input handling@{Drm input handling}!ecore\_drm\_evdev\_key\_remap\_set@{ecore\_drm\_evdev\_key\_remap\_set}}
\index{ecore\_drm\_evdev\_key\_remap\_set@{ecore\_drm\_evdev\_key\_remap\_set}!Drm input handling@{Drm input handling}}
\doxysubsubsection{\texorpdfstring{ecore\_drm\_evdev\_key\_remap\_set()}{ecore\_drm\_evdev\_key\_remap\_set()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+drm\+\_\+evdev\+\_\+key\+\_\+remap\+\_\+set (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Drm\+\_\+\+Evdev $\ast$}]{edev,  }\item[{int $\ast$}]{from\+\_\+keys,  }\item[{int $\ast$}]{to\+\_\+keys,  }\item[{int}]{num }\end{DoxyParamCaption})}



Sets a given set of keys as remapped keys on a Ecore\+\_\+\+Drm\+\_\+\+Evdev. 

This function will create a hash table of remapping keys as a member of the given Ecore\+\_\+\+Drm\+\_\+\+Evdev


\begin{DoxyParams}{Parameters}
{\em edev} & The Ecore\+\_\+\+Drm\+\_\+\+Evdev to set the remapping keys on \\
\hline
{\em from\+\_\+keys} & A set of keycodes which contains the original keycode \\
\hline
{\em to\+\_\+keys} & A set of keycodes which contains the keycode to be remapped \\
\hline
{\em num} & The number of keys to be applied\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+FALSE is returned if the Ecore\+\_\+\+Drm\+\_\+\+Evdev is not valid, if no libinput device has been assigned to it yet, if key remap is not enabled yet, or the some of the given parameters such as from\+\_\+keys, to\+\_\+keys, num are not valid. EINA\+\_\+\+TRUE will be returned if setting key remap for this device succeeded.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17
\end{DoxySince}
Sets a given set of keys as remapped keys on a Ecore\+\_\+\+Drm\+\_\+\+Evdev.


\begin{DoxyParams}{Parameters}
{\em edev} & The Ecore\+\_\+\+Drm\+\_\+\+Evdev to set the remapping keys on \\
\hline
{\em from\+\_\+keys} & A set of keys which contains the original keycodes \\
\hline
{\em to\+\_\+keys} & A set of keys which contains the keycodes to be remapped \\
\hline
{\em num} & The number of keys to be applied \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+FALSE is returned if the Ecore\+\_\+\+Drm\+\_\+\+Evdev is not valid, if no libinput device has been assigned to it yet, if key remap is not enabled yet, or the some of the given parameters such as from\+\_\+keys, to\+\_\+keys, num are not valid. EINA\+\_\+\+TRUE will be returned if setting key remap for this device succeeded.
\end{DoxyReturn}
This function will create a hash table of remapping keys as a member of the given device. This hash table will be used in \+\_\+device\+\_\+remapped\+\_\+key\+\_\+get() later on. Whenever a key event is coming from the the backend of ecore drm layer the keycode of it can be replaced with the key found in the hash table. If there is no key found, the coming keycode will be used. 

References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga5e72d0c5397936512407ce8cd66e98d6}{eina\+\_\+hash\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gace7ae6d7bd230722e9df0239a589893f}{eina\+\_\+hash\+\_\+int32\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

