<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>What can I do, if I want to press and hold button?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14468/what-can-i-do-if-i-want-to-press-and-hold-button</link><description>Hey guys, I have a question.
Please tell me. 
 I use the BLE module implementation of the nrf51822.
Now, I try to use sample program &amp;quot;ble_app_hids_mouse&amp;quot; for s110.
I want to move with the button this program. 
 First question.
I can move mouse.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2016 12:23:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14468/what-can-i-do-if-i-want-to-press-and-hold-button" /><item><title>RE: What can I do, if I want to press and hold button?</title><link>https://devzone.nordicsemi.com/thread/55255?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 12:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928b417d-8ca9-4467-a9dc-a2ca73fdf935</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;What happens if you push and hold the button? Does it print the state several times or does it go out of the event handler? What is the value of pstate? I would guess PIN26_STATE is defined as (1&amp;lt;&amp;lt;26)?&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t have to define APP_BUTTON_RELEASE as 1. You should also not change APP_BUTTON_ACTIVE_HIGH and APP_BUTTON_ACTIVE_LOW. The active state of the button is defined when you initialize it (see the app_button_cfg_t struct).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>