1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>IsExpectedToProcessHomeButton</title>
8  </head>
9  <body>
10<h1><CODE>nn::applet::CTR::IsExpectedToProcessHomeButton</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool IsExpectedToProcessHomeButton(
15     void
16);
17</pre>
18    </div>
19<h2>Arguments</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">Returns whether there was a processing request. If <CODE>true</CODE>, the HOME Button must be processed. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Determines whether there has been a request to process the HOME Button.</p><!-- write here --><P>
28A return value of <CODE>true</CODE> indicates that either the HOME Button was pressed to jump to the HOME Menu, or some other applet made a similar request to jump to the HOME Menu.
29</P><P>
30In such cases, call the <a href="../../../nn/applet/CTR/ProcessHomeButton.html"><CODE>nn::applet::CTR::ProcessHomeButton</CODE></a> to process the HOME Button. Then call <a href="../../../nn/applet/CTR/WaitForStarting.html"><CODE>nn::applet::CTR::WaitForStarting</CODE></a> to wait for starting if required.
31</P><PRE>
32   // HOME Button transition check
33   if ( <FONT color="red">applet::IsExpectedToProcessHomeButton()</FONT> )
34   {
35       _save_my_data();
36
37       // HOME Button transition process
38       applet::ProcessHomeButton();
39
40       // Wait
41       applet::WaitForStarting();
42
43       if ( applet::IsExpectedToCloseApplication() )
44       {
45             _close_application();
46       }
47
48       _recover_my_data();
49
50       // Clear HOME Button state
51       applet::ClearHomeButtonState();
52   }
53</PRE></div>
54<h2>Revision History</h2>
55    <div class="section">
56      <dl class="history">
57        <dt>2010/11/10</dt>
58<dd>Initial version.<br />
59        </dd>
60      </dl>
61    </div>
62  <hr><p>CONFIDENTIAL</p></body>
63</html>