mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
input: don't configure unprobed devices
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@936 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
72de54727a
commit
23bfd0f2cc
2 changed files with 8 additions and 1 deletions
|
@ -541,7 +541,10 @@ int in_set_config(int dev_id, int what, const void *val, int size)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dev->probed)
|
||||||
return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
|
return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
|
||||||
|
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)
|
const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
|
|
||||||
#define PBTN_MENU (1 << 10)
|
#define PBTN_MENU (1 << 10)
|
||||||
|
|
||||||
|
// TODO: move to pico
|
||||||
|
#if 0
|
||||||
|
|
||||||
/* ui events */
|
/* ui events */
|
||||||
#define PEVB_VOL_DOWN 30
|
#define PEVB_VOL_DOWN 30
|
||||||
#define PEVB_VOL_UP 29
|
#define PEVB_VOL_UP 29
|
||||||
|
@ -48,6 +51,7 @@
|
||||||
|
|
||||||
#define PEV_MASK 0x7ff80000
|
#define PEV_MASK 0x7ff80000
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IN_CFG_BIND_COUNT = 0,
|
IN_CFG_BIND_COUNT = 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue