newsdk: update

git-svn-id: svn://kolibrios.org@4102 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2013-10-26 03:51:40 +00:00
parent 8c99f46b7d
commit 46851141b8
3 changed files with 43 additions and 44 deletions
@@ -45,6 +45,21 @@ typedef struct
int out_size;
}ioctl_t;
static inline
void DefineButton(uint32_t x_w, uint32_t y_h, uint32_t id, uint32_t color)
{
__asm__ __volatile__(
"int $0x40"
::"a"(8),
"b"(x_w),
"c"(y_h),
"d"(id),
"S"(color));
};
static inline
void BeginDraw(void)
{
@@ -166,6 +181,16 @@ oskey_t get_key(void)
return val;
}
static inline
uint32_t get_os_button()
{
uint32_t val;
__asm__ __volatile__(
"int $0x40"
:"=a"(val)
:"a"(17));
return val>>8;
};
static inline uint32_t get_service(char *name)
{