u32 CMenu::NoInputTime()
{
	bool input_found = false;
	if(ShowPointer() == true || RIGHT_STICK_MOVE == true || gc_btnsPressed != 0)
		input_found = true;
	else
	{
		for(int chan = WPAD_MAX_WIIMOTES-1; chan >= 0; chan--)
		{
			if(wii_btnsPressed[chan] != 0 || wii_btnsHeld[chan] != 0)
			{
				input_found = true;
				break;
			}
		}
	}
	if(input_found == false)
	{
		if(no_input_time == 0)
			no_input_time = time(NULL);
		return time(NULL) - no_input_time;
	}
	no_input_time = 0;
	return 0;
}
Example #2
0
void SeekBar::Clear()
{
    if (!blocked)
        return;
    data.clear();
    SetPositionP(0.0);
    ShowPointer(false);
    maximum = 0;
}
Example #3
0
 void
 eyes::paintEvent (QPaintEvent *event)
 {
   if (config) {
      if (config->ShowEyes()) {
        ShowEyes();
      }
      if (config->ShowArrow()) {
        ShowPointer();
      }
      if (config->ShowBubble()) {
         ShowSpot();
      }
   }
 }