~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to Nux/InputArea.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-25 13:42:45 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20110825134245-kfz5nhs15353wcbl
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    return _capture_mouse_down_any_where_else;
136
136
  }
137
137
 
138
 
  void InputArea::SetEnableDoubleClickEnable (bool double_click)
 
138
  void InputArea::EnableDoubleClick (bool double_click)
139
139
  {
140
140
    _double_click = double_click;
141
141
  }
142
142
 
143
 
  bool InputArea::DoubleClickEnable() const
 
143
  bool InputArea::DoubleClickEnabled() const
144
144
  {
145
145
    return _double_click;
146
146
  }
327
327
  // == Signals with 1 to 1 mapping to input device ==
328
328
  void InputArea::EmitMouseDownSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)
329
329
  {
330
 
    OnMouseDown.emit(x, y, mouse_button_state, special_keys_state);
 
330
    mouse_down.emit(x, y, mouse_button_state, special_keys_state);
331
331
  }
332
332
 
333
333
  void InputArea::EmitMouseUpSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)
334
334
  {
335
 
    OnMouseUp.emit(x, y, mouse_button_state, special_keys_state);
 
335
    mouse_up.emit(x, y, mouse_button_state, special_keys_state);
336
336
  }
337
337
 
338
338
  void InputArea::EmitMouseMoveSignal(int x, int y, int dx, int dy, unsigned long mouse_button_state, unsigned long special_keys_state)
377
377
  void InputArea::EmitMouseEnterSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)
378
378
  {
379
379
    _event_processor._current_mouse_in = true;
380
 
    OnMouseEnter.emit(x, y, mouse_button_state, special_keys_state);
 
380
    mouse_enter.emit(x, y, mouse_button_state, special_keys_state);
381
381
  }
382
382
 
383
383
  void InputArea::EmitMouseLeaveSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)
384
384
  {
385
385
    _event_processor._current_mouse_in = false;
386
 
    OnMouseLeave.emit(x, y, mouse_button_state, special_keys_state);
 
386
    mouse_leave.emit(x, y, mouse_button_state, special_keys_state);
387
387
  }
388
388
 
389
389
  void InputArea::EmitMouseClickSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)
390
390
  {
391
 
    OnMouseClick.emit(x, y, mouse_button_state, special_keys_state);
 
391
    mouse_click.emit(x, y, mouse_button_state, special_keys_state);
392
392
  }
393
393
 
394
394
  void InputArea::EmitMouseDoubleClickSignal(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state)