Skip to content

Commit

Permalink
Rename CONFIG_NX_MOUSE to CONFIG_NX_INPUT, then add CONFIG_NX_XYINPUT…
Browse files Browse the repository at this point in the history
…_MOUSE and CONFIG_XYINPUT_TOUCHSCREEN
  • Loading branch information
gregory-nutt committed Jul 16, 2014
1 parent d70769a commit 8182037
Show file tree
Hide file tree
Showing 56 changed files with 185 additions and 75 deletions.
10 changes: 5 additions & 5 deletions Documentation/NXGraphicsSubsystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ <h3>2.3.2 <a name="nxtypes">NX Types</a></h3>
FAR const struct nxgl_point_s *pos,
FAR const struct nxgl_rect_s *bounds,
FAR void *arg);
#ifdef CONFIG_NX_MOUSE
#ifdef CONFIG_NX_XYINPUT
void (*mousein)(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos,
uint8_t buttons, FAR void *arg);
#endif
Expand Down Expand Up @@ -1001,7 +1001,7 @@ <h4>2.3.3.2 <a name="nxcbposition"><code>position()</code></a></h4>
<h4>2.3.3.3 <a name="nxcbmousein"><code>mousein()</code></a></h4>
<p><b>Callback Function Prototype:</b></p>
<ul><pre>
#ifdef CONFIG_NX_MOUSE
#ifdef CONFIG_NX_XYINPUT
void mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos,
uint8_t buttons, FAR void *arg);
#endif
Expand Down Expand Up @@ -1987,7 +1987,7 @@ <h3>2.3.30 <a name="nxmousein"><code>nx_mousein()</code></a></h3>
#include &lt;nuttx/nx/nxglib.h&gt;
#include &lt;nuttx/nx/nx.h&gt;

#ifdef CONFIG_NX_MOUSE
#ifdef CONFIG_NX_XYINPUT
int nx_mousein(NXHANDLE handle, nxgl_coord_t x, nxgl_coord_t y, uint8_t buttons);
#endif
</pre></ul>
Expand Down Expand Up @@ -3259,8 +3259,8 @@ <h2>B.3 <a name="nxconfig">NX Configuration Settings</a></h2>

<ul>
<dl>
<dt><code>CONFIG_NX_MOUSE</code>:
<dd>Build in support for mouse input.
<dt><code>CONFIG_NX_XYINPUT</code>:
<dd>Build in support for an X/Y input such as a mouse or a touscreen.
<dt><code>CONFIG_NX_KBD</code>:
<dd>Build in support of keypad/keyboard input.
<dt><code>CONFIG_NX_WRITEONLY</code>:
Expand Down
2 changes: 1 addition & 1 deletion configs/compal_e99/nsh_highram/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/hymini-stm32v/nsh2/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
5 changes: 4 additions & 1 deletion configs/lm3s6965-ek/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/lm3s8962-ek/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/lpcxpresso-lpc1768/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/maple/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
5 changes: 4 additions & 1 deletion configs/mikroe-stm32f4/fulldemo/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/nxlines/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/nxtext/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
5 changes: 4 additions & 1 deletion configs/olimex-lpc1766stk/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/open1788/nxlines/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
# CONFIG_NX_MOUSE is not set
# CONFIG_NX_XYINPUT is not set
# CONFIG_NX_KBD is not set

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sam3u-ek/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sam3u-ek/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sama5d3x-ek/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sama5d3x-ek/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/sama5d4-ek/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ TM7000 LCD/Touchscreen
CONFIG_NX_DISABLE_32BPP=y

Graphics Support -> Input Devices ->
CONFIG_NX_MOUSE=y : Build in mouse/touchscreen support (not used)
CONFIG_NX_XYINPUT=y : Build in mouse/touchscreen support (not used)
CONFIG_NX_KBD=y : Build in keyboard support (not used)

Graphics Support -> Framed Window Borders ->
Expand Down
5 changes: 4 additions & 1 deletion configs/sama5d4-ek/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sama5d4-ek/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,10 @@ CONFIG_NX_PACKEDMSFIRST=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/shenzhou/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sim/nsh2/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ CONFIG_NX_DISABLE_24BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sim/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sim/nx11/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,10 @@ CONFIG_NX_DISABLE_24BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sim/nxlines/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@ CONFIG_NX_DISABLE_24BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ CONFIG_NX_DISABLE_24BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/sim/touchscreen/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ CONFIG_NX_DISABLE_24BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/stm3210e-eval/nsh2/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/stm3210e-eval/nx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/stm3210e-eval/nxconsole/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
CONFIG_NX_XYINPUT_MOUSE=y
# CONFIG_NX_XYINPUT_TOUCHSCREEN is not set
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/stm3210e-eval/pm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
5 changes: 4 additions & 1 deletion configs/stm3220g-eval/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,10 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
# CONFIG_NX_XYINPUT_NONE is not set
# CONFIG_NX_XYINPUT_MOUSE is not set
CONFIG_NX_XYINPUT_TOUCHSCREEN=y
CONFIG_NX_KBD=y

#
Expand Down
2 changes: 1 addition & 1 deletion configs/stm3240g-eval/knxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ CONFIG_NX_DISABLE_32BPP=y
#
# Input Devices
#
CONFIG_NX_MOUSE=y
CONFIG_NX_XYINPUT=y
CONFIG_NX_KBD=y

#
Expand Down
Loading

0 comments on commit 8182037

Please sign in to comment.