mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[mujs] keyboard.c
This commit is contained in:
parent
ac8b24881c
commit
72893a60a3
@ -1,6 +1,6 @@
|
|||||||
top_builddir=../../../..
|
top_builddir=../../../..
|
||||||
include $(top_builddir)/Makefile.config
|
include $(top_builddir)/Makefile.config
|
||||||
|
|
||||||
OBJS = attr.o attributes.o collection.o console.o forms.o history.o implementation.o mapa.obj
|
OBJS = attr.o attributes.o collection.o console.o forms.o history.o implementation.o keyboard.o mapa.obj
|
||||||
|
|
||||||
include $(top_srcdir)/Makefile.lib
|
include $(top_srcdir)/Makefile.lib
|
||||||
|
@ -1 +1 @@
|
|||||||
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'forms.c', 'history.c', 'implementation.c', 'mapa.cpp')
|
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'forms.c', 'history.c', 'implementation.c', 'keyboard.c', 'mapa.cpp')
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#ifndef CONFIG_LIBDOM
|
||||||
|
|
||||||
static void mjs_keyboardEvent_get_property_key(js_State *J);
|
static void mjs_keyboardEvent_get_property_key(js_State *J);
|
||||||
static void mjs_keyboardEvent_get_property_keyCode(js_State *J);
|
static void mjs_keyboardEvent_get_property_keyCode(js_State *J);
|
||||||
@ -124,3 +125,4 @@ mjs_keyboardEvent_get_property_keyCode(js_State *J)
|
|||||||
}
|
}
|
||||||
js_pushnumber(J, keyb->keyCode);
|
js_pushnumber(J, keyb->keyCode);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -3,8 +3,16 @@
|
|||||||
|
|
||||||
#include <mujs.h>
|
#include <mujs.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct term_event;
|
struct term_event;
|
||||||
|
|
||||||
void mjs_push_keyboardEvent(js_State *J, struct term_event *ev);
|
void mjs_push_keyboardEvent(js_State *J, struct term_event *ev);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user