break;
if (enabled && !input->islocked())
for (std::list<eRCDevice*>::iterator i(listeners.begin()); i!=listeners.end(); ++i)
- (*i)->handleCode((int)&ev);
+ (*i)->handleCode((long)&ev);
}
}
* For Example, it might be 16bit codes with one bit make/break or special codes
* for repeat.
*/
- virtual void handleCode(int code)=0;
+ virtual void handleCode(long code)=0;
/**
* \brief Get user readable description.
* \result The description.
}
}
-void eRCConsole::handleCode(int code)
+void eRCConsole::handleCode(long code)
{
input->keyPressed(eRCKey(this, code, eRCKey::flagAscii));
}
class eRCConsole: public eRCDevice
{
public:
- void handleCode(int code);
+ void handleCode(long code);
eRCConsole(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;
#include <lib/base/init_num.h>
#include <lib/driver/input_fake.h>
-void eRCDeviceInputDev::handleCode(int rccode)
+void eRCDeviceInputDev::handleCode(long rccode)
{
struct input_event *ev = (struct input_event *)rccode;
if (ev->type!=EV_KEY)
{
int iskeyboard;
public:
- void handleCode(int code);
+ void handleCode(long code);
eRCDeviceInputDev(eRCInputEventDriver *driver);
const char *getDescription() const;
};
case evtAction:
if (isVisible())
{
- if ((int)data == ASCII_ACTIONS)
+ if ((long)data == ASCII_ACTIONS)
{
- if ((int)data2 == gotAsciiCode)
+ if ((long)data2 == gotAsciiCode)
{
if (m_content)
{
}
}
}
- else if ((int)data == INPUT_ACTIONS)
+ else if ((long)data == INPUT_ACTIONS)
{
- switch((int)data2)
+ switch((long)data2)
{
case moveLeft:
if (m_content)
return 0;
case evtKey:
{
- int key = (int)data;
- int flags = (int)data2;
+ long key = (long)data;
+ long flags = (long)data2;
if (m_content && !(flags & 1)) // only make/repeat, no break
return m_content->haveKey(key, m_mode);
break;
}
}
-void eListbox::moveSelection(int dir)
+void eListbox::moveSelection(long dir)
{
/* refuse to do anything without a valid list. */
if (!m_content)
case evtAction:
if (isVisible())
{
- moveSelection((int)data2);
+ moveSelection((long)data2);
return 1;
}
return 0;
}; */
int getCurrentIndex();
- void moveSelection(int how);
+ void moveSelection(long how);
void moveSelectionTo(int index);
void moveToEnd();
bool atBegin();