]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
Merge branch 'master' of https://github.com/MadCatX/LinuxFF-KLGDFF
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 20 Sep 2015 20:08:32 +0000 (22:08 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 20 Sep 2015 20:08:32 +0000 (22:08 +0200)
1  2 
klgd_ff_plugin.c
klgd_ff_plugin.h
klgdff.c

Simple merge
index f110e8be83927ef0460513b7b97a07376e9d73b2,9a6cc49b23d4beb86b44bd9bc21a20d72bbec756..ef82fbcb40951a66de8e58cf4b2bc98f40e567bf
                                            Device must support FF_CONSTANT for this to work. */
  #define FFPL_MEMLESS_RAMP BIT(8)       /* Device cannot process FF_RAMP by itself and requires KLGD-FF to calculate the overall force.
                                            Device must support FF_CONSTANT for this to work. */
 -#define FFPL_TIMING_CONDITION BIT(9)   /* Let the plugin take care of starting and stopping of condition effects */
 +#define FFPL_MEMLESS_RUMBLE BIT(9)     /* Device cannot process FF_RUMBLE by itself and requires KLGD-FF to calculate the overall force.
 +                                          Device must support FF_RUMBLE for this to work. */
 +
 +#define FFPL_TIMING_CONDITION BIT(10)  /* Let the plugin take care of starting and stopping of condition effects */
  
  #define FFPL_HAS_NATIVE_GAIN BIT(15)  /* Device can adjust the gain by itself */
- #define FFPL_HAS_AUTOCENTER BIT(16) /* Device supports autocentering */
  
  enum ffpl_control_command {
        /* Force feedback state transitions */
diff --cc klgdff.c
index f282dcddd805f2d2bb070e6c4aa687d4d19b0599,51b12607f879fd6696bf1f5408a2edd01ed228a0..cc5a14261c880576d7317bc0102b355061bef628
+++ b/klgdff.c
@@@ -354,10 -354,10 +354,11 @@@ static int __init klgdff_init(void
        input_set_capability(dev, EV_KEY, BTN_TRIGGER);
        input_set_abs_params(dev, ABS_X, -0x7fff, 0x7fff, 0, 0);
        input_set_abs_params(dev, ABS_Y, -0x7fff, 0x7fff, 0, 0);
+       set_bit(FF_AUTOCENTER, &ffbits);
  
        ret = ffpl_init_plugin(&ff_plugin, dev, EFFECT_COUNT, ffbits,
-                              FFPL_HAS_EMP_TO_SRT | FFPL_REPLACE_STARTED | FFPL_HAS_AUTOCENTER |
 -                             FFPL_HAS_EMP_TO_SRT | FFPL_REPLACE_STARTED | FFPL_MEMLESS_RAMP | FFPL_TIMING_CONDITION,
++                             FFPL_HAS_EMP_TO_SRT | FFPL_REPLACE_STARTED |
 +                             FFPL_MEMLESS_CONSTANT | FFPL_MEMLESS_RUMBLE | FFPL_TIMING_CONDITION,
                               klgdff_control, &test_user);
        if (ret) {
                printk(KERN_ERR "KLGDFF-TD: Cannot init plugin\n");