|
|
@@ -70,14 +70,15 @@ ButtonEvent(short keycode, double time) :
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE ButtonEvent::
|
|
|
ButtonEvent(const wstring &candidate_string, size_t highlight_start,
|
|
|
- size_t highlight_end, double time) :
|
|
|
+ size_t highlight_end, size_t cursor_pos) :
|
|
|
_button(ButtonHandle::none()),
|
|
|
_keycode(0),
|
|
|
_candidate_string(candidate_string),
|
|
|
_highlight_start(highlight_start),
|
|
|
_highlight_end(highlight_end),
|
|
|
+ _cursor_pos(cursor_pos),
|
|
|
_type(T_candidate),
|
|
|
- _time(time)
|
|
|
+ _time(ClockObject::get_global_clock()->get_frame_time())
|
|
|
{
|
|
|
}
|
|
|
|
|
|
@@ -93,6 +94,7 @@ ButtonEvent(const ButtonEvent ©) :
|
|
|
_candidate_string(copy._candidate_string),
|
|
|
_highlight_start(copy._highlight_start),
|
|
|
_highlight_end(copy._highlight_end),
|
|
|
+ _cursor_pos(copy._cursor_pos),
|
|
|
_type(copy._type),
|
|
|
_time(copy._time)
|
|
|
{
|
|
|
@@ -110,6 +112,7 @@ operator = (const ButtonEvent ©) {
|
|
|
_candidate_string = copy._candidate_string;
|
|
|
_highlight_start = copy._highlight_start;
|
|
|
_highlight_end = copy._highlight_end;
|
|
|
+ _cursor_pos = copy._cursor_pos;
|
|
|
_type = copy._type;
|
|
|
_time = copy._time;
|
|
|
}
|